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

Set the Date Filter to Blank as Default

Hello,

 

I want to allow users to select a specific date using the date filter. The filter is configured and accepting the dates. But i want that initially the dafault value should be blank. How to do that please?

 

FYI Please. I have three dates filters for now and i want to set all of them to be blank.

 

Thanks in advance.

 

Regards,

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @AkshayManke ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1719283166052.png

Note that the date columns here are of text type.

(2) Get more visuals->Search Preselected Slicer.

vtangjiemsft_2-1719283458430.png

(3) We can create a table.

_PreselectedSlicer = DATATABLE(
    "IsDirtySlicer", BOOLEAN, 
    {
        {FALSE()},
        {TRUE()}
       
    }
)

(4) We can create a measure.

_Dafault = 
VAR _SelectedWeek = SELECTEDVALUE('Table'[Date])
VAR _Dafault =BLANK()

RETURN 
 _SelectedWeek=_Dafault

(5) Then the result is as follows.

vtangjiemsft_3-1719283682358.png

If your date is listed as a date type, the result is as follows, which is due to design.

vtangjiemsft_1-1719283268948.png

 

Best Regards,

Neeko Tang

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

View solution in original post

4 REPLIES 4
v-tangjie-msft
Community Support
Community Support

Hi @AkshayManke ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1719283166052.png

Note that the date columns here are of text type.

(2) Get more visuals->Search Preselected Slicer.

vtangjiemsft_2-1719283458430.png

(3) We can create a table.

_PreselectedSlicer = DATATABLE(
    "IsDirtySlicer", BOOLEAN, 
    {
        {FALSE()},
        {TRUE()}
       
    }
)

(4) We can create a measure.

_Dafault = 
VAR _SelectedWeek = SELECTEDVALUE('Table'[Date])
VAR _Dafault =BLANK()

RETURN 
 _SelectedWeek=_Dafault

(5) Then the result is as follows.

vtangjiemsft_3-1719283682358.png

If your date is listed as a date type, the result is as follows, which is due to design.

vtangjiemsft_1-1719283268948.png

 

Best Regards,

Neeko Tang

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

Hello @v-tangjie-msft , What would your alternative solution be if the Custom Visual Preselected Slicer were suddenly unavailable?   Can you provide this in a form with a stock visual available now?

Hi @foodd ,

 

Unfortunately, the default slicer visual doesn't support pre-selected values, and you can post your ideas on the Idea forum. 

https://ideas.powerbi.com/ideas/

 

Best Regards,

Neeko Tang

ajohnso2
Continued Contributor
Continued Contributor

Since slicers are based off the values in your tables how do you expect to default it to <BLANK>?

You could default to a particular date i.e always the current days date

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.