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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
JKoivu
Helper I
Helper I

Slicer that filters rows with a blank column

Hi, I was wondering if it's possible to create a slicer that filters rows if certain column is blank? I think I could make a calculated column by using the "Create column from example" feature, but is there other ways to achieve this?

 

For example I have this type of data:

JKoivu_0-1599714640852.png

 

Could I create a slicer with two checkboxes "Show completed tasks" and "Show pending tasks", and it would filter the table based on the "Completed on" column? Also both should be allowed to be selected at the same time so that the table shows all tasks.

EDIT

I actually just tried the "Column from examples" feature to create a "Is complete" column, but it failed to find any transforms.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JKoivu , best would a calculated column and a slicer on that.

Other option is create a table with thise two values (Enter data) and use the selected value for calculation

measure like

if(selectedvalue(Task[Task value]= "Show completed tasks", calculate(countrows(Table) filter(Table, not(isblank(Table[compeltedOn])))), calculate(countrows(Table) filter(Table, isblank(Table[compeltedOn]))))

 

In case you want go with column

slicer column = if( isblank(Table[compeltedOn]) , "Show completed tasks", "Show pending tasks")

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@JKoivu , best would a calculated column and a slicer on that.

Other option is create a table with thise two values (Enter data) and use the selected value for calculation

measure like

if(selectedvalue(Task[Task value]= "Show completed tasks", calculate(countrows(Table) filter(Table, not(isblank(Table[compeltedOn])))), calculate(countrows(Table) filter(Table, isblank(Table[compeltedOn]))))

 

In case you want go with column

slicer column = if( isblank(Table[compeltedOn]) , "Show completed tasks", "Show pending tasks")

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

Shouldn't that logic be reversed?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Community Champion
Community Champion

@JKoivu - Yes, in DAX you could create this column:

Slicer Column =
  IF(ISBLANK([Completed on]),"Pending","Completed")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.