Forum Discussion
Date Slicer, Set a specific date at opening
- 7 years ago
Hi sdionne,
The column should be in the table [Calendrier]. The formula could be as follows. Then it will work with the dates.
Column = VAR maxDate = MAX ( StatProcessus[Hier] ) RETURN IF ( [Date] = maxDate, 1, 0 )
BTW, make sure you didn't share anything sensitive.
Best Regards,
Hi Sdionne,
The details of PattemManohar's idea are as follows.
1. Select the max date in the slicer and save the file. It's the max date in the next opening.
2. Add a column like below.
IsMax = VAR maxDate = CALCULATE ( MAX ( 'Calendar'[Datekey] ), ALL ( 'Calendar' ) ) RETURN IF ( [Datekey] = maxDate, 1, 0 )
Best Regards,
Hello v-jiascu-msft,
it is pretty much what I am looking for, but because I want that the max date is selected when I open the report and I want to be able to choose any date in a calendar like Calendar by Tallan, I must have 2 segments.
Also, when I open the report indeed the max date is selected, if I change the IsMax to 0, I can select an another date in calendar, but if I select again IsMax to 1, I must reselect the date, it is not automatic to 22 like I opened the report.
I hope these explanation are clears.
Thanks
sdionne
- v-jiascu-msft7 years ago
Microsoft Employee
Hi Sdionne,
This is a workaround for opening the file with the max date. So you can clear the slicer to move to other operations.
If you create the column along the date column, the selection of IsMax equals to the date 22. You don't have to select the date at the same time.
Best Regards,
- sdionne7 years agoFrequent Visitor
unfortunately, i tried but it is not working, can you show me an example or give me more details please.
Thanks
sdionne- v-jiascu-msft7 years ago
Microsoft Employee
Hi sdionne,
The snapshots in my last post are quite clear. Can you share your example again? I can't access the link in your last post.
Best Regards,