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

Apply filter only when the attribute in the slicer is selected

I've built up a ranking in Power BI. However, sometimes there are some missing data. For example, I get a 0 for the KPI: OEE, even tough there can't be 0 OEE. → OEE is not 0 but as no data comes in for the production plant, so it marks it as 0.

 

I want to add a filter that it only shows OEE above 0. However, when I do this, all production plants with 0EE = 0 get removed from the Ranking. Also from the other KPI rankings. My aim is only remove it when I select OEE from the slicer (on the right). I want to apply the same for the other KPIs.

 

How does this work?

 

OEE.JPG

 

Thank you!

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

What measure have you used?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I tried to first add a "Check measure" which checks whether OEE is selected:

 

Check OEE = 
IF (
SELECTEDVALUE ( main_KPI[Attribute] )="OEE",
1,
0
)

 

Then I just need another measure which excludes all 0 from the Ranking when "Check OEE" = 1...

Something like this...

 

Zero Row Filter OEE = 
IF (AND ( [Check OEE] = 1, [OEE] = 0), EXLUDE THE FACTORIES, DONT EXCLUDE)

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