Forum Discussion
P_P2595
Helper I
3 years agohow do I get the previous QTR value without date table
Input: Description Metric Target QTR Value 1. Strenth Of Services CS 0 QTR1 234 1. Strenth Of Services CS 0 QTR2 123 1. Strenth Of Services CS 0 QTR3 345 1. Strent...
- 3 years ago
- 3 years ago
Ahmedx
Super User
3 years agoP_P2595
Helper I
3 years agoHi Ahmedx,
Hope you are doing well.
Your solution is perfectly working for me but if the current QTR is blank then it's not displaying the previous QTR values but the previous QTR value is there.
Thanks
- Ahmedx3 years ago
Super User
- P_P25953 years ago
Helper I
Thanks Ahmedx, that works for me😊.
- Ahmedx3 years ago
Super User
hi? try this variant
Previous QTR Value = VAR _t1 =MAX('Table'[QTR]) VAR _t2 = MAX('Table'[Description]) VAR _LastValue = CALCULATE(LASTNONBLANKVALUE('Table'[QTR],[Sales]),'Table'[QTR]<_t1) RETURN _LastValue ------------------- Previous QTR Value fixed = SUMX(VALUES('Table'[Description]),[Previous QTR Value])