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.
Hi all! I'm struggling with a scenario which seemed simple to realize at first, but turns out to be not that simple. I have a report that should meet the following requirements
Any help and ideas are appreciated!
Regards, Remy
Solved! Go to Solution.
Hello, @RemyBosman
As a workaround, you can try to create a calendar table and then use the "ISFILTERED" function to create a "New Date" measure to replace the original "DATE" file:
New Date =
VAR default_date =
TODAY () //LATEST DATE YOU WANT
RETURN
IF (
ISFILTERED ( 'Date'[Date] ),
SUM ( 'Table'[Date] ),
CALCULATE (
SUM ( 'Table'[Date] ),
FILTER ( 'Table', 'Table'[Date] = default_date )
)
)
When there is no selection in the date segmentation, the visuals will be filtered by the default date (today).
Once there is a selection in the slicer, the default value must be canceled and the visual should be filtered normally.
For more details, see the attached pbix file.
Best regards
Community Support Team _ Eason
@RemyBosman , I think as of now the solution is like is today will work. You can have other dates in that
A new column like this
Is Today = if('Date'[Date]=max(Table[Date]),"Last Date",[Date]&"")
Sort it on date of your date table, so that user can select other dates too
Thanks for your response. A column like you mentioned wont work in a proper date picker am I right? Also when using this field in the standard filters pane theres no option to sort or use a date picker.
Hello, @RemyBosman
As a workaround, you can try to create a calendar table and then use the "ISFILTERED" function to create a "New Date" measure to replace the original "DATE" file:
New Date =
VAR default_date =
TODAY () //LATEST DATE YOU WANT
RETURN
IF (
ISFILTERED ( 'Date'[Date] ),
SUM ( 'Table'[Date] ),
CALCULATE (
SUM ( 'Table'[Date] ),
FILTER ( 'Table', 'Table'[Date] = default_date )
)
)
When there is no selection in the date segmentation, the visuals will be filtered by the default date (today).
Once there is a selection in the slicer, the default value must be canceled and the visual should be filtered normally.
For more details, see the attached pbix file.
Best regards
Community Support Team _ Eason
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 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |