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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
lherbert501
Post Patron
Post Patron

EOMONTH with slicer

Hi there,

 

This dax returns first day of the previous month to today correctly. FirstDay PreviousMonth = EOMONTH(TODAY(),-2)+1

 

How would I replace TODAY() with my datedim i.e. slicer, so that if I went back previous months, it would still do the first day of the previous month to the selected date?

 

I've tried to put my datedim in place of today but this isn't correct.

 

Thanks

 

Liam

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

FirstDay PreviousMonth = EOMONTH(MAX(dateDim[Date]),-2)+1

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

FirstDay PreviousMonth = EOMONTH(MAX(dateDim[Date]),-2)+1

Thankyou Sir @johnt75 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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