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
shuhn1229
Helper III
Helper III

help with a cumulative total visual

hi all,

 

I have a visual that sort of looks like the below

shuhn1229_0-1710533540321.jpeg

I developed a measure for this and placed in in the y axis 

 

CALCULATE (
    COUNT( 'Table'[Name] ),
    FILTER ( 
        ALL ( 'Table' ),
        'Table'[Bucket] <= MAX ( 'Table'[Bucket] )
    ),
    VALUES ( 'Table'[Column1] )
)

 

 

The measure works appropriately when I have a slicer populated with a value from Column 1 selected. However, I get nonsense results when I add a slicer for Column 3 and try to slice by that metric. I should add, for every distinct value of Column 1 there tends to be just value of Column 3. But Column 3 can contain many values of Column 1.

 

Thanks!

1 ACCEPTED SOLUTION
shuhn1229
Helper III
Helper III

CALCULATE (
    COUNT( 'Table'[Name] ),
    FILTER ( 
        ALLSELECTED( 'Table' ),
        'Table'[Bucket] <= MAX ( 'Table'[Bucket] )
    ),
    VALUES ( 'Table'[Column1] )
)

View solution in original post

1 REPLY 1
shuhn1229
Helper III
Helper III

CALCULATE (
    COUNT( 'Table'[Name] ),
    FILTER ( 
        ALLSELECTED( 'Table' ),
        'Table'[Bucket] <= MAX ( 'Table'[Bucket] )
    ),
    VALUES ( 'Table'[Column1] )
)

Helpful resources

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