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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.