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
Joost
Regular Visitor

Calculated measure in graph does not respond to drilldown

Hi,

I have made calculated measures to show the cumulative values of two columns (Actuals and Target). The formula works the same for both except they use a different column from the Entries table (Actual and Target respectively). So the cumulative actual formula looks as follows 

Cumulative Actual = CALCULATE(
    SUM (Entries[Actual]); 
    FILTER(ALL(Entries);
        Entries[WeekNum]<=MAX(Entries[WeekNum])
        )
)

And this shows me the correct total of the cumulatives when comparing this total value of the graph with the gauge meter on this page of the report (182.37m).

Cumulative chart all objectives.png


However, when using the slicer on the left (or selecting items in the matrix tables for that matter), the graph does not display the correct value anymore. This can be concluded by comparing the gauge meter actual value (1m) to the graph actual value (143.38m).

Cumulative chart drilldown one objective.png

The visuals have interaction on as can be seen in the screenshots and the gauge meter + table values are correct this way. I feel as I am overlooking a simple thing but can't figure this out. How can I get my graph (with the calculated cumulative measure) to respond to this drilldown as expected? 

EDIT: forgot screenshots

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

HI @Joost

 

What happens when you try this small tweak?

 

Cumulative Actual = CALCULATE(
    SUM (Entries[Actual]); 
    FILTER(ALLSELECTED(Entries);
        Entries[WeekNum]<=MAX(Entries[WeekNum])
        )
)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Phil_Seamark
Employee
Employee

HI @Joost

 

What happens when you try this small tweak?

 

Cumulative Actual = CALCULATE(
    SUM (Entries[Actual]); 
    FILTER(ALLSELECTED(Entries);
        Entries[WeekNum]<=MAX(Entries[WeekNum])
        )
)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thank you Phil! That did the trick. Learning something new everyday.

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.