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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Display start and end date from slicer

Hello,

I have a date slicer on my report to choose start and end dates.  How can I display the start and end date chosen on the report in a text box or card?

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to this post: Get start and end date from Timeline Slicer.

 

 

Best Regards,

Icey

 

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

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to this post: Get start and end date from Timeline Slicer.

 

 

Best Regards,

Icey

 

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

amitchandak
Super User
Super User

@Anonymous ,

measure =
var _min = minx(allselected(Date), Date[Date])
var _max = maxx(allselected(Date), Date[Date])
return
_min & " " _max

 

If required use format to get the required format

Anonymous
Not applicable

Thank you...Do I hit new measure and put this code there?  And I'm confused as to where the name of the field actually goes, or just the word 'date'

Measure = var _min = minx(ALLSELECTED('QGenda Compliance'[Event Date], 'QGenda Compliance'[Event Date]) var _max = maxx(ALLSELECTED('QGenda Compliance'[Event Date], 'QGenda Compliance'[Event Date]) return _min & " " _max

 

Getting error sytnax for var is incorrect.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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