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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filter All help

Howdy all, I am having some trouble attempting to calculate a sum outside of my slicer range. Currently I have a matrix visual with sales data listed and my slicer drills in monthly. I am trying to create an additional value column for my backlog (past due) orders, these are essentially a YTD sum based on whatever max date is selected within my slicer.

I have three measures setup

Backlog$ = SUM(Ex_Sales[Backlog]) 

Date_Selected = MAX(PB_DateKey[Date])

Backlog Sum = CALCULATE([Backlog$],FILTER(ALLEXCEPT(PB_DateKey,PB_DateKey[Date]),[Date_Selected] > MIN(Ex_Sales[Adj_Date])))

I am missing something as my results are not what expected. Thank you in advance for any help you can provide.

1 ACCEPTED SOLUTION
GabrielSantos
Resolver I
Resolver I

Hey there! I was able to create a measure that delivers "a YTD sum based on whatever max date is selected within my slicer".

 

Using your defined [Backlog] measure, I wrote a measure as follows:

 

Calculate ( [Backlog],
                       DatesYTD( PB_DateKey[Date] )

 

Please keep in mind that this assumes a relationship between the Ex_Sales and PB_DateKey tables.

 

Please let me know if you have any questions!

 

Please find an example file here:

 

Dropbox link

View solution in original post

1 REPLY 1
GabrielSantos
Resolver I
Resolver I

Hey there! I was able to create a measure that delivers "a YTD sum based on whatever max date is selected within my slicer".

 

Using your defined [Backlog] measure, I wrote a measure as follows:

 

Calculate ( [Backlog],
                       DatesYTD( PB_DateKey[Date] )

 

Please keep in mind that this assumes a relationship between the Ex_Sales and PB_DateKey tables.

 

Please let me know if you have any questions!

 

Please find an example file here:

 

Dropbox link

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.