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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
JLCote828
Frequent Visitor

Help with a Matrix

I'm struggling to build a matrix and think I'm missing something simple.  I'm pulling monthly data, I have Feb. Mar. Apr. but only want to show Apr. and the year to date totals.  Simply filter out the months I don't want to see removes them from the total.  How do I remove the months I don't want to see but keep their totals?

 

Thank you advance!

 

James

1 ACCEPTED SOLUTION

Great! For the cumulative total to reset, you can use the TOTALYTD() DAX function. Here's a link to the updated .pbix with both the cumulative and ytd measures. I have updated the data model to include a proper date dimension.

View solution in original post

7 REPLIES 7
Fthrs_Analytics
Frequent Visitor

Hi James,

 

It looks like you need to create a cumulative total DAX measure. Here's a sample .pbix file.

I am more than pleased, this got me 95% there!  My next question; how do I get that FY24 Cumulative Total to only pull up through FY25 current month rather than full year?

JLCote828_0-1715695583970.png

 

 

Great! For the cumulative total to reset, you can use the TOTALYTD() DAX function. Here's a link to the updated .pbix with both the cumulative and ytd measures. I have updated the data model to include a proper date dimension.

Thanks for this!  I think it works & gives me what I need.  I can't confirm as it has identified an issue in my source data.  Once I get that corrected, I believe this will give me exactly what I'm looking for.  SO much appreciated, thank you!!!

Hi @Fthrs_Analytics ,thanks for the quick reply.

Hi @JLCote828 ,

I don't quite understand your question. Is ' FY25 current month' April? Are you trying to calculate the total from January 2024 to April 2025? Is it possible to provide simple data and show the expected results as a picture.

Hello - 

 

Here's a shot of what I'm trying to get to:

JLCote828_0-1715777535198.png

I want to be able to compare "apples to apples" so, in this instance, since I have Feb-Apr FY25, I want to compare it to Feb-Apr FY24, when I get May data, I'll want to compare Feb-May, etc.

The formula as written works perfectly for the FY25 data, but is pulling all of FY24 data rather than just Feb-Apr.

Does that help?

Excellent, thank you, I'll give it a shot & let you know!  Much appreciated, thank you!

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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