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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.