cancel
Showing results for 
Search instead for 
Did you mean: 
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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors