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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors