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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Apply specific filters to specific rows

Hello there! I have a rather simple doubt, but I'm still learning.

I had a bunch of columns related to one person and I wanted to transform these columns into rows, so I pivotted the information and got something like this:

 

PersonKPIScore
John Doe% of TGG completed63,3%
John Doe% of new users31,1%
John Doe% of points used77,0%

 

For each KPI we have a specific score we want to show, for example, the first KPI should only be showed in the table if it's below 50%, the second one too, so it's showing correctly since it's 31,1%. For each KPI we have a specific value. How to filter the rows so only the values below what we want will show?
Thank you for the attention!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not very clear , Try a measure like this in place of score. Blank in else is important to remove rows. You can change conditions as per need

Switch( True(),
max(table[KPI]) = "% of TGG completed" && [Score] >= 50 , [Score],
max(table[KPI]) = "% of new users" && [Score] >= 50 , [Score],
max(table[KPI]) = "% of points used" && [Score] >= 50 , [Score],
blank())

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for the response!
I did what you told me but it did not return the results as expected, in fact it kept giving errors. It gave me an idea though. Since I couldn't just hide the KPIs I don't want to appear I decided to create a column beside them showing the ones Below the Threshold.

 

Threshold =
var Score =
SUMX(
Performance,
Performance[Score by KPI])
RETURN
SWITCH(TRUE(),
MAX(Performance[KPIs]) = "Revenue" && Score <= 60, "Below",
"X" && Score <= 80, "Below",
"Y" && Score <= 50, "Below",
and so on for all the KPIs.

Problem is that it only works with the first line "Revenue", and I have to close the measure. Like this:

Threshold =
var Score =
SUMX(
Performance,
Performance[Score by KPI])
RETURN
SWITCH(TRUE(),
MAX(Performance[KPIs]) = "Revenue" && Score <= 60, "Below")

If I put any other argument like the example above, it will not work.

I'm sorry, I'm really trying to make it work, if anyone can help...

Here's an image of how it goes (The goal is to show that to all KPIs not just one):
 
123.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.