Forum Discussion
Anonymous
4 years agoNot applicable
Get previous value from index slicer dynamically DAX
Hi everybody, I am creating a report for which I use and index slicer. I want to compare a value from the current selection with the value previous to the current selection. Index Project...
Jihwan_Kim
Super User
4 years agoHi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Prev value: =
CALCULATE ( SUM ( Data[Value] ), Data[Index] = MAX ( Data[Index] ) - 1 )
Current value: =
SUM( Data[Value] )
Current text: =
SELECTEDVALUE( Data[Text] )