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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
FilipFireFlyBI
Resolver I
Resolver I

Cumulative sum with a slicer

Hi all,

 

I have a slicer (A) with the ProductID datetype number.

When I select productID 3 I want to see the cumulative sum of all productIDs (so ID 1 2 3) (B)

However, I only see productID 3 (The cumulative value 35K is correct).

In other words: I want to see 3 Product IDs 1,2 and 3 with their cumulative value (not ProductID 4 and the rest)

 

How to do this? 

 

 

Link to PBIX file on dropbox 

 

 

FilipFireFlyBI_0-1672916168128.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

I tried to use disconnected slicer table like below.

 

Jihwan_Kim_1-1672917823176.png

 

 

Jihwan_Kim_0-1672917798873.png

 

 

Expected outcome measure: =
IF (
    MAX ( 'dim Products'[ProductID] ) <= MAX ( 'Product ID Slicer'[ProductID] ),
    CALCULATE (
        [Gross sales],
        'dim Products'[ProductID] <= MAX ( 'dim Products'[ProductID] )
    )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

I tried to use disconnected slicer table like below.

 

Jihwan_Kim_1-1672917823176.png

 

 

Jihwan_Kim_0-1672917798873.png

 

 

Expected outcome measure: =
IF (
    MAX ( 'dim Products'[ProductID] ) <= MAX ( 'Product ID Slicer'[ProductID] ),
    CALCULATE (
        [Gross sales],
        'dim Products'[ProductID] <= MAX ( 'dim Products'[ProductID] )
    )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors