Forum Discussion
Reference Sliced date in expression
- 8 years ago
Hi Anonymous,
If you add Table[Date] in slicer, and you select a date range in slicer, you can create a measure using formula below to get the latest date of the range in slicer.Latest Date in slicer = CALCULATE ( LASTDATE ( Table[Date] ), ALLSELECTED ( Table ) )
Then you can use the meausre [Latest Date in slicer] in another DAX expression.
Best Regards,
Angelia
I think I want to do something very similar. I would like to create 2 multi-row cards of data. I have a relative date slicer. The first card would display the data for the timeframe selected by the slicer, while the second card would show the data from the previous period for the timeframe selected by the slicer. For example, if you selected this 7 days in the slicer the second card would display the 7 days previous. If you selected this 3 months in the slicer the second card would display the 3 months previous. Ideally, you would be able to select any range of dates and the second card would calculate the range selected and determine the timeframe of the previous period.
- Ashish_Mathur8 years ago
Super User