Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Get Last Month Data thru DAX



I am showing the trend of 3 measure values for last 12 months, but user want to know the % of last current month data as well.

Then I used below DAX functions which helped me not to write one more sql code.


CALCULATE(SUM('Total Open'[Opened]) ,FILTER(ALL('Total Open'[Month]), 'Total Open'[Month] = MAX ('Total Open'[Month])) )


I used this code for all 3 measure seperately and then use "100% Stacked Column Chart" to display.




Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!


The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors