I got the "We were unable to retrieve the Last Sign On information..." Error
If you're receiving the "We were unable to retrieve the Last Sign On information because this data requires a Microsoft Entra ID P1 license. If you purchase and assign an Entra ID P1 license to your users, we will be able to display the Last Sign On field in future reports." error you're not alone.
Unfortunately, there's nothing I can do to prevent this. Microsoft considers the last sign on date of users an "Advanced security and usage report". Those reports are only available if you have a Microsoft Entra P1 license. The Microsoft Entra P1 license is available as a separate subscription or bundled into other subscriptions you can purchase through Microsoft 365. You may be able to get a trial license from Microsoft or you may be able to purchase the required licenses for one month and then decommission them.