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
powerbityro
Helper II
Helper II

SINGLE SELECT last date

Hi All Robot Indifferent

 

I have ich Slicer with

 

2019/1

2018/4

2018/3

 

and choose SINGLE SELECT with 2019/1. But when I get new Data with 2019/2 the choosen Button is still 2019/1. Can I control that? I want that the SINGLE SELECT is always the newest one.

 

Many thanks. 

5 REPLIES 5
dax
Community Support
Community Support

Hi powerbityro

 

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

106.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

Anonymous
Not applicable

It is possible to use

 

if Date.IsInCurrentMonth( [Date] )
then "Current Month"
else [Month]

 

with Output current date 2019/1 instead of the text "Current Month"?

I have no Date. Only Year and Quarter and Year/Quarter.

I work in Direct Query Mode... so both solutions... MAX in Column and

 

if Date.IsInCurrentMonth( [Date] )
then "Current Month"
else [Month]

 

is not accepted. Is it than not possibe in DQ Mode or do you have some further ideas? Robot Mad

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.