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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Sagimore88
Frequent Visitor

Blank In Search Filter

Hello 🙂

I have slicer on the page that is a measure- It is taking a value from a datefiff column and returning  text.

Column is a datefiff in months -

Overdue Period = DATEDIFF('Policy DimPolicy'[Received_DT], TODAY(),MONTH)

Measure=

OverdueGroup = IF('Policy DimPolicy'[Overdue Period] < 3, "Exclude",
IF('Policy DimPolicy'[Overdue Period] > 2 && 'Policy DimPolicy'[Overdue Period] < 7, "3-6 Months",
IF('Policy DimPolicy'[Overdue Period] > 5 && 'Policy DimPolicy'[Overdue Period] < 10, "6-9 Months",
IF('Policy DimPolicy'[Overdue Period] > 8 && 'Policy DimPolicy'[Overdue Period] < 13, "9-12 Months",
IF('Policy DimPolicy'[Overdue Period] > 11 && 'Policy DimPolicy'[Overdue Period] < 25, "1-2 Years", "Over 2 Years")))))
 
This works fine, but the slicer on the page still give the option to select blanks. I have change the filter to not include blanks.
Im guessing I need an IF statement added to the above measure or column to do a  IF blank, "Exclude" but I cant seem to get the correct syntax for that. Any help is appreciated.
 
Sagimore88_1-1657128784593.png

 

 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Sagimore88 , Refer why blank in slicer, see if that can help

 

https://www.youtube.com/watch?v=23qemkDqMVY

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

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Sagimore88 ,

 

This is a small mistake. Change And to Or.

 

vchenwuzmsft_0-1657603762894.png

 

And means items which does not contain exclude, and the same time it should be no blank. But blank does not match "does not contain" this situation. So, please change to Or.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Sagimore88 , Refer why blank in slicer, see if that can help

 

https://www.youtube.com/watch?v=23qemkDqMVY

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.