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
stuross1129
Frequent Visitor

Get min and max values from date slicer

I am trying to retrieve the 2 date values used in my slicer and use in a Title text string.  What I can't figure out is how to pull the 2 date values from my slicer?  Note that I do not want to pull the minimum and maximum values from the underlying table with the date column, I want to pull the dates as selected in the slicer.

 

In this example if I select 1/1/2018 as the 1st date, the first date in my table is actually 1/7/2018.  I want to be able to get the 1/1/2018 date value, not the 1/7/2018 value in my data.  Think of it as what is the start and end of the reporting period.

 

 

dateslicer.png

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @stuross1129,

 

Suppose you drag date field from date dimention table into slicer, to get the Max and Min date values from slicer selection, please create below measures:

MaxDate=MAX(DateDimention[Dates])

MinDate=MIN(DateDimention[Dates])

 

But if you want to show them dynamically in a Title Text, it is not available.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @stuross1129,

 

Suppose you drag date field from date dimention table into slicer, to get the Max and Min date values from slicer selection, please create below measures:

MaxDate=MAX(DateDimention[Dates])

MinDate=MIN(DateDimention[Dates])

 

But if you want to show them dynamically in a Title Text, it is not available.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.