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
adamnimmo
Helper I
Helper I

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
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.