March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a requirement in one of my reports where I should be filtering and fetching the maximum of a date based on a date slicer selection i.e., If i select a date range from the date slicer, the slicer should filter the visual having only one record that holds the maximum of the date available(less than or equal to end date of the date range slicer) and if the end date of the date range slicer changes based on the end user selection, the filteration and fetch of that one record having the maximum date should be displayed in the visual.
Screenshots and description given below for a better understanding,
when considering the above screen shot for the id 158440 we are having 4 records and based on the slicer selection made, only the maximum(Highlighted) should be shown.
In the second pic above, the end date of the slicer is changed, now the visual should be showing the current maximum record(Highlighted) based on the end date selection.
Let us know if any further information is needed.
Please let us know if there is a workaround for the above scenario. Requesting for a reply ASAP as many reports in plan depend on this functionality.
Solved! Go to Solution.
Hi @srangu ,
Try to create the following measure, add it into visual level filters, set show items when the value is 1.
Measure = IF(MAX('Table'[Date])=CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table')),1)
CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table')) returns the max date in the slicer.
If the slicer max date is changed to 1/25/2022, the visual also changes.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @srangu ,
Try to create the following measure, add it into visual level filters, set show items when the value is 1.
Measure = IF(MAX('Table'[Date])=CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table')),1)
CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table')) returns the max date in the slicer.
If the slicer max date is changed to 1/25/2022, the visual also changes.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |