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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
AnonEMoose
Regular Visitor

Possibility of dynamically hiding values in multiple columns based on a slicer?

I'm not even sure if Power BI has the capability to this, but what I'm trying to do is essentialy "hide" values dynamically based on a slicer or some other way to specify values (less than 2, between 2 and 4, only 5, etc). I've been able to add a slicer for each column, but it ends up hiding the entire rows (which I don't want), but also having a slicer for each column isn't ideal either. 

C1C2C3C4C5C6C7C8
43452224
34432354
44451233
32341124
33455214
22221114
55352424
55351213
55351213

So I guess I'm looking for a slicer or other type of way to hide values from multiple columns at the same time, without hiding the rows. I'm mentally prepared to hear this isn't possible, but thanks in advance nonetheless. 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @AnonEMoose ,

 

you create a numeric parameter that you would use to specify the number , then you apply the following dax

C1 value = IF(SELECTEDVALUE('Table'[C1]) < Parameter[Parameter Value],BLANK(),SELECTEDVALUE('Table'[C1]))




Idrissshatila_0-1704915519033.pngIdrissshatila_1-1704915544471.png

if you want to have values between, then you create another numeric parameter and adjust the dax to greater than parameter one and less than parameter 2.

 

attached is the pbix that i used to demonstrate the above.

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @AnonEMoose ,

 

you create a numeric parameter that you would use to specify the number , then you apply the following dax

C1 value = IF(SELECTEDVALUE('Table'[C1]) < Parameter[Parameter Value],BLANK(),SELECTEDVALUE('Table'[C1]))




Idrissshatila_0-1704915519033.pngIdrissshatila_1-1704915544471.png

if you want to have values between, then you create another numeric parameter and adjust the dax to greater than parameter one and less than parameter 2.

 

attached is the pbix that i used to demonstrate the above.

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




This was 90% of what I needed, and I was able to figure out the other 10%. Thank you for your help!

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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