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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NickProp28
Post Partisan
Post Partisan

Previous Month show blank

Dear Community,

 

I have problem on getting the previous month achievement. 

Attached pbix which have only Feb and March data, and DAX calculation for their achievement of that month. 

Like February have 83.3% while March have 78.3%.

When slicer is select March, previous month will show 83.3% (February).

* I have calendar and link it to the data.

pbix: https://ufile.io/f9otpxbj

 

Thanks for your attention.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NickProp28 , I tried like this

 

Seem to be work

Previous month = CALCULATE([Achievement],DATESMTD(DATEADD('Calendar'[Date],-1,MONTH)))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@NickProp28 , I tried like this

 

Seem to be work

Previous month = CALCULATE([Achievement],DATESMTD(DATEADD('Calendar'[Date],-1,MONTH)))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.