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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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