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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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