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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Shelley
Continued Contributor
Continued Contributor

How one of my Running YTD total doesn't filter correctly?

I'm probably (I Hope) missing something simple, but I can't figure it out. I am still having a hard time understanding the logic with some of the DAX commands. So I appreciate the help!

 

We are on Septemeber fiscal year end and I am trying to calculate running sums for three variables, Plan (AOP), Current Year Revenue and Last Year's Revenue. These are my formulas.

 

Fiscal YTD Plan(AOP) Revenue = TOTALYTD([Total AOP Revenue Value], 'RA_Daily_Calendar'[Date],ALL(Daily_Calendar[Date]),"9/30")

Fiscal YTD Revenue = TOTALYTD([Total Revenue Converted], 'RA_Daily_Calendar'[Date],ALL(Daily_Calendar[Date]),"9/30")

Last Fiscal YTD Revenue = CALCULATE([Fiscal YTD Revenue], SAMEPERIODLASTYEAR(Daily_Calendar[Date]))

 

Using these formulas and no slicer filters, everything works great. I can click on the region, sales territory and sales office slicers, the calendars (month, quarter, year), and all works great. However, when I click to filter a Business Unit slicer, the YTD Plan numbers remain calculating for all Business Units. There is Plan data for individual business units). I don't know if I should use ALLSELECTED or ALLEXCEPT (instead of ALL)? Or am I missing something else?

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Shelley,

 

Share us a simplified example. It really helps to understand your situation.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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