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.
Hello all, II not found exactly what I am looking for.
I have a slicer by date (Calendar by Tallan) and when I open the report I want that the selected date is the max date, sometime the max date is yesterday, and sometime is 2 or 3 days before today.
And with Calendar by Tallan I can select any date after the report is open, but at the opening I want the max date.
Can you help?
Thanks
sdionne
Solved! Go to Solution.
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,
@sdionne Select the Max Date in the slicer and save the pbix file. Or you can have a report level filter set to MaxDate flag (create a supporting column to flag the max date).
Proud to be a PBI Community Champion
I think my knowledge are not so good, so can you give me more explanation?
Thanks
sdionne
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
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,
unfortunately, i tried but it is not working, can you show me an example or give me more details please.
Thanks
sdionne
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,
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |