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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AMaxfield
Regular Visitor

Measure a column of numbers or blanks to create a slicer with yes or no

Hi All

 

I have acolumn of data for stock demand whcih either has many number vlaues or blank cells.

I want to include a clicer in the report with just two options for either demand yes or no.

So basically where there is a blank it will be demand no and any number will be demand yes.

Can you please point me in the right direct how to set this up? Thanks Andy

2 ACCEPTED SOLUTIONS
Thim
Resolver V
Resolver V

You can create a new Column with a Dax formula like this.

 

Blank Slicer = IF('Table'[Column1]=BLANK();"No";"Yes")
 
Then you can use the new column as a filter.
 
Hope this will help. 🙂

View solution in original post

rajulshah
Resident Rockstar
Resident Rockstar

Hello @AMaxfield,

 

You can create a calculated column as below:
Demand Yes/No = IF(ISBLANK(Table[Stock Demand]),"No","Yes")

You can use this column in the slicer.

 

 

View solution in original post

3 REPLIES 3
AMaxfield
Regular Visitor

Great thanks worked once I realised it was "New Column" rather than "New Measure"

rajulshah
Resident Rockstar
Resident Rockstar

Hello @AMaxfield,

 

You can create a calculated column as below:
Demand Yes/No = IF(ISBLANK(Table[Stock Demand]),"No","Yes")

You can use this column in the slicer.

 

 

Thim
Resolver V
Resolver V

You can create a new Column with a Dax formula like this.

 

Blank Slicer = IF('Table'[Column1]=BLANK();"No";"Yes")
 
Then you can use the new column as a filter.
 
Hope this will help. 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors