If you are new to the Graph, it can be a bit challenging, so it's probably best to use the Microsoft Graph SDK for PowerShell. Here's an example:
Select-MgProfile beta
Get-MgUser -Property signInActivity | select UserPrincipalName,@{n="LastSignIn";e={$_.signInActivity.LastSignInDateTime}} | ? {$_.LastSignIn -ge (Get-date).AddDays(-90)}
To do it directly via Graph, see for example: https://www.michev.info/Blog/Post/2968/reporting-on-users-last-logged-in-date-in-office-365
The query you can use to filter just sign ins in the past 90 days looks something like this:
https://graph.microsoft.com/beta/users?$filter=(signInActivity/lastsignindatetime+gt+2022-03-01T00:00:00Z)&$select=UserPrincipalName,signInActivity