Forum Discussion
Anonymous
2 years agoNot applicable
How to get previous value
I have a sample table as below: Display_Name Effective_Date Department Jason 2/1/2012 TCX Jason 7/1/2012 TCX Jason 7/1/2012 BFDA Jason 8/14/2012 BFDA Jason 8/21/2012 MB...
- 2 years ago
Hi Anonymous
Please try this measure:
Previous Department = CALCULATE ( MAX ( 'Table'[Department] ), OFFSET ( -1, ALLEXCEPT ( 'Table', 'Table'[Display_Name] ), ORDERBY ( 'Table'[Effective_Date], ASC ) ) )
danextian
Super User
2 years agoHi Anonymous
Please try this measure:
Previous Department =
CALCULATE (
MAX ( 'Table'[Department] ),
OFFSET (
-1,
ALLEXCEPT ( 'Table', 'Table'[Display_Name] ),
ORDERBY ( 'Table'[Effective_Date], ASC )
)
)