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

Running total % with visual as page filter

I have a running total % measure that works in a table as expected:

 

AccountValueCumulative TotalCumulative Total %Threshold measure
B252537%TRUE
C234871%TRUE
A136190%FALSE
D768100%FALSE

 

For the calculation I use the following DAX expressions:

 

Cumulative Total % = 
DIVIDE (
    IF (
        NOT ( ISBLANK ( [Total Value] ) ),
        CALCULATE (
            [Total Value],
            FILTER ( ALL ( 'Table'[Account] ), SUM ( 'Table'[Value] ) <= [Total Value] )
        )
    ),
    [Overall Value]
)
Threshold measure = [Cumulative Total %] <= 0.8

 I want to filter my page on those accounts that make up up to 80% of the total value (marked with TRUE).

 

However I only managed to set this correctly on the visual level filter for the table. I cannot add this measure as a page filter. Final goal would be to provide a visual so I can add this to a dashboard on PBI services.

 

Any idea whether/how this is possible?

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @Bernd,

 

It is now possible to add a measure to Page Level Filter currently. However, the calculate column can be added to Page Level Filter. So I would suggest you to create a calculate column for "Threshold measure" in your scenario, then you should be able to put it to Page Level Filter.Smiley Happy

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @Bernd,

 

It is now possible to add a measure to Page Level Filter currently. However, the calculate column can be added to Page Level Filter. So I would suggest you to create a calculate column for "Threshold measure" in your scenario, then you should be able to put it to Page Level Filter.Smiley Happy

 

Regards



Thanks @v-ljerr-msft for the clarification.

 

I tried to convert the measure into a calculated column, but without success.

 

Can you help me with a corresponding DAX expression that would do the trick? Just "wrapping" the measure to make it work in a row-context does not return the % as needed.

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.