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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Fab117
Helper IV
Helper IV

Select most recent date (by default) in slicer

In my database (Excel), I’ve a column with a date

Type:

Extract date

Parameter

Value

15.12.2023

X

1

 

15.12.2023

Y

2

 

15.12.2023

Z

1

 

15.01.2023

X

2

 

15.01.2023

Y

3

 

15.01.2023

Z

1

 

15.02.2023

X

2

 

15.02.2023

Y

1

 

15.02.2023

Z

2

 

 

In my report I’ve a dropdown slicer which let me select extraction date I want to look at.

C1.png

Is it possible to have by default the most recent date selected?

 

Tks.

 

Fab

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Fab117 ,

 

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

(1) This is my test data.  

vtangjiemsft_0-1677228909752.png

(2) We can create a table.

Table 2 = {TRUE(),FALSE()}

(3)As shown in the following image, add a "Preselected Slicer" visual.

vtangjiemsft_1-1677229027373.pngvtangjiemsft_2-1677229054779.png

(4)We can create a measure.

Measure = var a=MAXX(ALL('Table'),[Column1])
return IF(MAX([Column1])=a,TRUE())

(5) Then the result is as follows.

vtangjiemsft_3-1677229170917.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

7 REPLIES 7
Fab117
Helper IV
Helper IV

Hi @Anonymous 

This solves perfectly my issue.

Thank you very much for looking at my request and sharing the solution.

 

Would it be possible for you to explain me how the formulae (n°4 in your tuto) is working?

 

Have a great week-end

 

Fab

Anonymous
Not applicable
Anonymous
Not applicable

Hi @Fab117 ,

 

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

(1) This is my test data.  

vtangjiemsft_0-1677228909752.png

(2) We can create a table.

Table 2 = {TRUE(),FALSE()}

(3)As shown in the following image, add a "Preselected Slicer" visual.

vtangjiemsft_1-1677229027373.pngvtangjiemsft_2-1677229054779.png

(4)We can create a measure.

Measure = var a=MAXX(ALL('Table'),[Column1])
return IF(MAX([Column1])=a,TRUE())

(5) Then the result is as follows.

vtangjiemsft_3-1677229170917.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. 

Fab117
Helper IV
Helper IV

I found a perfect solution with my demo file.

Unfortunately, it doesn’t work with my production file.

Methodology:

I put my card (pointing on Extract date field) over my slicer (in the top right corner).

I apply transparent background on it, adjust font size and no border

Fab117_14-1677227129218.png

 

Next step is to apply a function on the font color for the value of the card:

Black if “Extract Date v2” field is “Latest Extract Date”

White for any other value

 

It’s working properly on my demo file, but not with my production file.

First issue, when I select the “Extract_Date” field, it mentions “Count of Extract Date”

Fab117_16-1677227129225.png

 

And then, only Summarization options I have are Counting

... in next post (Server Too busy)

 

... follow up from previous post

And then, only Summarization options I have are Counting

Fab117_18-1677227294110.png

 

 

Do someone know why this difference and how to solve it?

 

Tks.

 

Fab

Fab117
Helper IV
Helper IV

Hi,

I’m nearly there.

In Data View, I created a new column to identify the nearest date with formula

 

Extract Date v2 = if('Sheet1'[Extract date]=Max('Sheet1'[Extract date]),"Latest Extract Date", FORMAT('Sheet1'[Extract date], "DD-MM-YYYY"))

 

 

Fab117_0-1677224037624.png

 

Then I point my slicer to new column “Extract Date v2”

 

I select “Latest Extract Date” cell and save. Now, when report will be launched, my slicer will always point on “Latest Extract Date” which will be automatically updated if new data’s are added in my data base.

 

Remaining issue: I don’t know what is behind “Latest Extract Date”? Which date is it?

Ideal solution would be to have the corresponding date (field “Extract date”) mentioned somewhere in the slicer. Something like:

Fab117_2-1677224037629.png

 

NB: I didn’t find a way to do it.

Alternative would be to add in my report a card with the correspondence using value from “Extract date” field:

Fab117_11-1677224377281.png

 

However, this makes sense when user stays on “Latest Extract Date” in the slicer, but if user select another date, it’s useless

Fab117_12-1677224377285.png

 

For this, I tried to play with the Selection and Bookmarks panes, but was unsuccessful:

 

If someone knows how to do it, would be much appreciated.

 

Fab

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