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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
sudhakar111
Helper IV
Helper IV

How to display the dates in a slicer?

Hello Everyone,

 

I have a slicer based on a calender table. Using the slicer i select the date range. The problem i am facing is how to display the 2 dates which are selected on the slicer. I tried using the Values(Calender[Date]). Also tried to use Min and Max functions. But Min and Max are giving the min and max values for the calender table,but not the selected dates on the slicer.

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

you can determine the minimum value of the daterange seleceted on the slicer by definig a measure (or assinging the statement to a variable) like so

minSelectedDate = 
MINX(ALLSELECTED('Calendar'[Date]),'Calendar'[Date])

to get the max values, just use MAXX instead of MINX.

 

Here is a little example, displaying the min value on a card visual

2017-09-24_20-30-54.png

 

Hope this helps

 

Regards

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey,

 

you can determine the minimum value of the daterange seleceted on the slicer by definig a measure (or assinging the statement to a variable) like so

minSelectedDate = 
MINX(ALLSELECTED('Calendar'[Date]),'Calendar'[Date])

to get the max values, just use MAXX instead of MINX.

 

Here is a little example, displaying the min value on a card visual

2017-09-24_20-30-54.png

 

Hope this helps

 

Regards

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks a lot.Worked perfectly.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.