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
LotteLaugesen
Helper V
Helper V

How to get selected date from slicer

Hi 

 

How can I get the selected date from a date slicer?
I have tried this:
Test MaxDate = SELECTEDVALUE(Dim_Calendar[Date]) (Returns blank)
Test MaxDate = MAX
(Dim_Calendar[Date])

Test MaxDate = CALCULATE(MAX(Dim_Calendar[Date]),ALLSELECTED(Dim_Calendar[Date]))
 
The 2 last returns the last date in Dim_Calendar (31/12/2029) and not the selected date.
LotteLaugesen_0-1658129092489.png
Can anybody help?

BR

Lotte

1 ACCEPTED SOLUTION

9 REPLIES 9
vapid128
Solution Specialist
Solution Specialist

That is not normal.

I use MaxDate = MAX(Dim_Calendar[Date]) a lot.

 

The only case i can think how this happen is:

 

you have 2 tables with date. One end at 2029 and the other one end at 2022.

When your filter at the last of the one end with 2022.

It doesn't main you have a filter at a day in 2022.

It means you have no filter.

 

Or check you relationship, the cross filter direction need to be both.

Anonymous
Not applicable

Hi @LotteLaugesen ,

Have you solved the issue now? If so, please mark the solution as the answer. If not, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards
Community Support Team _ Polly

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

 

SpartaBI
Community Champion
Community Champion

@LotteLaugesen how did you configure the slicer? Dates greater then?

What do you get when you write:

Test MinDate = MIN(Dim_Calendar[Date])

?

@SpartaBI 
The slicer is Dates before 
When I change it to Test MinDate = MIN(Dim_Calendar[Date]) I get 1/1/1900

 

 

Can you share the file (leave just the relevant columna with dates)

?

Thank you for asking - because now I found the problem. 😉

The calendar was related to another table with relationship both

 

 

@LotteLaugesen great, will appreciate your kudos 😉

@SpartaBI yes I will, but I found out it wasn't the whole truth.
I removed the relation a test solution and it worked, but when I did it the real solution it went back to 31/12/2029 😣

@LotteLaugesen will pm you now

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.