cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Slicer if max that

i created and publish a report on june 5, every day i have to open and put the date slicer on the right date. Is there any way to after i update the report the max date of the slicer is always set on the max date? ( like put a max date function on the slicer, or something like this)

Thanks

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi Postigo,

 

As  I know, we  can’t use a measure in Slicer, so if you want to make slicer always select newest date, you could try to use below method, create a column like below, then use this for Slicer

Column = if('Table'[Date]=MAX('Table'[Date]),"a",'Table'[Date]&"")

You could refer to video or Power BI Tutorial: Dynamically update Date slicer to show Current Date for details.

 

In addition, if you want to get the newest day based on current day(today), you also could use relative slicer, it will automatically change.

67.png

Best Regards,

Zoe Zhi

 

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
dax
Community Support
Community Support

Hi Postigo,

 

As  I know, we  can’t use a measure in Slicer, so if you want to make slicer always select newest date, you could try to use below method, create a column like below, then use this for Slicer

Column = if('Table'[Date]=MAX('Table'[Date]),"a",'Table'[Date]&"")

You could refer to video or Power BI Tutorial: Dynamically update Date slicer to show Current Date for details.

 

In addition, if you want to get the newest day based on current day(today), you also could use relative slicer, it will automatically change.

67.png

Best Regards,

Zoe Zhi

 

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 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it Out!

Join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!