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
krypto6969
Helper II
Helper II

Hot to add a button to show values in column

Hi 

 

I have a power bi working fine but I would like to add a button that would show only the rows that have a value for the column 'blocking'

 

krypto6969_0-1671656651224.png

 

 

So it would only show rows that have a value for the blocking column. Click button again (or a different button) to remove the filter and show all rows. 

 

What is the best way to accomplish this?

 

Thanks!

 

5 REPLIES 5
krypto6969
Helper II
Helper II

 

I tried your recommendation but am getting the error " dax comparisons do not support....". Tired changing the data type but still got the error. Any idea on what to try next? thanks! 

 

krypto6969_0-1671831270078.png

 

 

 

 

krypto6969
Helper II
Helper II

Hi jgeddes

 

I tried your recommendation but am getting the error " dax comparisons do not support....". Tired changing the data type but still got the error. Any idea on what to try next? thanks! 

krypto6969_0-1671823550583.png

 

try replacing Query1[blocking_session_id] = "" with ISBLANK(Query1[blocking_session_id] in the IF statement





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Ashish_Mathur
Super User
Super User

Hi,

Expand the filter pane and give a condition there of Non blanks for the Blocking column.


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

Not sure if it is the 'best' but I would create a calculated column that tests if the 'Blocked' column is blank or not. You can be as creative as you like with the return values of the test.

isBlocked = IF(yourTable[Blocked] = "", "notBlocked", "Blocked Values")

Then take that column and create a tile slicer and use the filter pane so that it only shows the "Blocked Values" option. 
You should now have the ability to select/deselect your blocked values filter.

jgeddes_0-1671659478363.pngjgeddes_1-1671659495319.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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