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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

TOTALYTD with 3 Measures

I have 3 measures, that all have different filters to get to particular values for a period of time (month, in this case).  When I try to take all 3 measures to create a cumulative running total, or YTD, calculation, it will not work.   Essentially, we have a period of time where Amount1 + Amount2 have a gap in-between, so we have to substitute Amount3 in for that particular month.  Each of the 3 measures are wrapped in TOTALYTD function. I do have a date dimension as well.   Amount1 and Amount2 calculation TOTALYTD corretly, but....

 

What seems to be happening in DAX, is when it tries to do TOTALYTD on Amount 3, it returns blank, so when the AmountYTD measure calculates, it ignores that month.   I've been fighting this for several days, and am stumped!  Anyone have any ideas?  I consider myself a pretty advanced DAX coder, but I've tried 100s of combinations to get this to calculation corretly, and it simly will not.  

 

Your help/suggestions is much appreciated!

 

 

https://pasteboard.co/GBwaelS.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

My issue was with one of my measures, not the fact that only one value was being returned.  This is resolved. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

 

It will be help if you share some detail content of your requirement.(for instance, sample data , measures formulas)

 

In addition, if you want the slicer works on measure , please ensure you are add the 'allselected' function to active the slicer effect on these measures.

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

My issue was with one of my measures, not the fact that only one value was being returned.  This is resolved. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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