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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RegionH
Helper I
Helper I

Slicing by measure not affecting visual card

I have a dataset of purchase order data. In the data I have a measure called 'Score class', which based on the suppliers delivery performance 'PO on time %' gives them a class from A+ to D. I then use that score class measure as a slicer. It works fine on a visual table, but it is not working on a visual card which shows the measure 'PO on time %'. The overall 'PO on time %' from all suppliers is still shown and not the filtered value.

 

Maybe someone could help me in the right direction to achieve want I want.

 

Link to pbix file: Measure as slicer.pbix 

 

2023-08-23 09_43_03-Window.jpg

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @RegionH 

 

You can try the following methods.

Measure = 
Var _table=SUMMARIZE(PO,PO[Supplier],PO[PO total],"Socre",[Score class],"Value",[PO on time])
Var _N1=SUMX(FILTER(_table,[Socre]=SELECTEDVALUE('Score Class'[Selection])),[Value])
Var _N2=SUMX(FILTER(_table,[Socre]=SELECTEDVALUE('Score Class'[Selection])),[PO total])
Return
DIVIDE(_N1,_N2)*100

vzhangti_0-1692957411939.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
RegionH
Helper I
Helper I

Thank you for the solution it works very well.

RegionH_0-1692967652710.png

 

v-zhangti
Community Support
Community Support

Hi, @RegionH 

 

You can try the following methods.

Measure = 
Var _table=SUMMARIZE(PO,PO[Supplier],PO[PO total],"Socre",[Score class],"Value",[PO on time])
Var _N1=SUMX(FILTER(_table,[Socre]=SELECTEDVALUE('Score Class'[Selection])),[Value])
Var _N2=SUMX(FILTER(_table,[Socre]=SELECTEDVALUE('Score Class'[Selection])),[PO total])
Return
DIVIDE(_N1,_N2)*100

vzhangti_0-1692957411939.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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