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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Cumulative/running total of measure(s) results based on slicer selection(s)

Thank you in advance for your help.

How can I accomplish this?

Users want to select values from the slicer and get cumulative results for the chosen measures. For instance, selecting ‘atRisk’ and ‘overdue’ should return the sum of both. Selecting only ‘atRisk’ should return just its value. Here's an example:

 

dataTable   
projectNameatRiskremainingoverdue
p_AAA5102
p_BBB3142
p_CCC2183
p_DDD9144

 

Measures
atRisk = Sum(dataTable[atRisk] )
remaining = Sum(dataTable[remaining] )

overdue = Sum(dataTable[overdue] )

 

Slicer
atRisk
remaining
overdue

 

Scenarios
Scenario #1: User selects 'atRisk' from the Slicer
Scenario #2: User selects 'atRisk' and 'overdue' from the Slicer
Scenario #3: User selects 'atRisk' and 'overdue' and 'remaining' from Slicer

 

Expected Results   
projectNameScenario #1Scenario #2 ('atRisk' + 'overdue')Scenario #3 ('atRisk' + 'overdue' + 'remaining')
p_AAA5717
p_BBB3519
p_CCC2523
p_DDD91317
1 ACCEPTED SOLUTION
Deku
Super User
Super User

Add a table for the slicer

 

Options=

Datatable(

"Option", string,

{{"atRisk"}, {"overdue"}, {"remaining"}}

)

 

And the measure

 

Measure =

If( "atRisk" in values( options[option]), [atRisk]) 

+

If( "overdue" in values( options[option]), [overdue])

+

If( "remaining" in values( options[option]), [remaining])


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

3 REPLIES 3
PijushRoy
Super User
Super User

Hi @Anonymous 

Please find the attached PBIX file.
I have calculated table for slicer and one measure for cumulative sum

PijushRoy_0-1742241499426.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Deku
Super User
Super User

Add a table for the slicer

 

Options=

Datatable(

"Option", string,

{{"atRisk"}, {"overdue"}, {"remaining"}}

)

 

And the measure

 

Measure =

If( "atRisk" in values( options[option]), [atRisk]) 

+

If( "overdue" in values( options[option]), [overdue])

+

If( "remaining" in values( options[option]), [remaining])


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

Thank you.  

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors