Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DjDon
Frequent Visitor

PREVIOUSMONTH displays blank

Hello,

I have a date column with the same date all the way down (7/2/2021)

This works fine:

Last Month = FIRSTDATE('data basis report'[Date of Data])   -  Displays 'July 2021' as I expect. Date of Data is formatted as a Date field.

 

This displays blank:

Last Month = PREVIOUSMONTH(FIRSTDATE('data basis report'[Date of Data])) - I'd like it to display June or June 2021

 

Any ideas?  Thanks in advance for the help..

1 REPLY 1
daxer-almighty
Solution Sage
Solution Sage

Time-intel functions work correctly only on correct date tables. https://dax.guide/previousmonth

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors