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! Learn more

Reply
FlowViz
Helper III
Helper III

Use slicer to change measure

Hi folks,

 

I have a report page like so:

Screenshot 2022-02-03 at 17.56.38.png

 

I want to calculate the percentage of time the WorkItemId (an item) was spent in an 'active' column vs. 'active' + 'waiting' column.
So for this example item (725), the only 'Active' column is 'In Test', therefore it should be:

4 / (0 + 38 + 40 + 63 + 4) = 3%

 

However if I chose a different item (696):

Screenshot 2022-02-03 at 17.56.26.png

 

the 'Active' columns are 'In Build' / 'In Test' / 'In Progress' so this would be

(5 + 63) / (129 + 38 + 5 + 63) = 29%

 

I want to be able to use the Column slicer to control the calculation, as users will need to select their 'waiting' columns...

 

Can this be done? Pbix file is available here

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @FlowViz ,

 

Check the steps.

1# create a slicer table and use it as slicer.

slicer = DISTINCT('WorkItems FlowEfficiency'[Column])

2# create a measure as below.

Measure 2 = 
var _active = SUMX(FILTER(ALLSELECTED('WorkItems FlowEfficiency'),'WorkItems FlowEfficiency'[Column] in VALUES(slicer[Column])),'WorkItems FlowEfficiency'[Measure])
var _all = SUMX(ALLSELECTED('WorkItems FlowEfficiency'),'WorkItems FlowEfficiency'[Measure])
return
_active/_all

Result:

2.PNG

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
FlowViz
Helper III
Helper III

Thank you! This is amazing 🙂

Anonymous
Not applicable

Hi @FlowViz ,

 

Check the steps.

1# create a slicer table and use it as slicer.

slicer = DISTINCT('WorkItems FlowEfficiency'[Column])

2# create a measure as below.

Measure 2 = 
var _active = SUMX(FILTER(ALLSELECTED('WorkItems FlowEfficiency'),'WorkItems FlowEfficiency'[Column] in VALUES(slicer[Column])),'WorkItems FlowEfficiency'[Measure])
var _all = SUMX(ALLSELECTED('WorkItems FlowEfficiency'),'WorkItems FlowEfficiency'[Measure])
return
_active/_all

Result:

2.PNG

 

Best Regards,

Jay

FlowViz
Helper III
Helper III

Bumping this to see if anyone had ideas?

FlowViz
Helper III
Helper III

I wanted the user to do this via the slicer (which is the "Column" column in the dataset), so if I want the user to select any "waiting" values and the formula to dynamically update based on selection...

Anonymous
Not applicable

Hi @FlowViz ,

 

How do you define whether the column is 'active' or 'waiting'? By [StateCategory] column?

 

Best Regards,

Jay

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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