Forum Discussion
Anonymous
7 years agoNot applicable
Refer to previous value within a Matrix
Hey guys, last 2 columns is my issue. I need the "Backlog Line not put away prior day" Value to calculate my SLAs. All columns values are measures. "Backlog Line not put away prior day" uses Toda...
- 7 years agoHiyou can use the below, this should solve your problem.yesterday =VAR yd = MAX('calendar'[Date]) -1RETURNCALCULATE([measure],ALL('calendar'), 'calendar'[Date] = yd)
- 7 years ago
Anonymous you can simply use previousday function as mentioned previously
Prev Day = CALCULATE( [Measure], PreviousDay( Calendar[Date] ) )
Mariusz
Community Champion
7 years agoHi
you can use the below, this should solve your problem.
yesterday =
VAR yd = MAX('calendar'[Date]) -1
RETURN
CALCULATE(
[measure],
ALL('calendar'), 'calendar'[Date] = yd
)
- Anonymous7 years agoNot applicable
This is genious! Thx. Works great. I am new to PBI still got a lot to learn.
- parry2k7 years ago
Super User
Anonymous you can simply use previousday function as mentioned previously
Prev Day = CALCULATE( [Measure], PreviousDay( Calendar[Date] ) )
- Anonymous7 years agoNot applicable
Both works fine. Yours is shorter :)
- Mariusz7 years ago
Community Champion
Hi Anonymous
If you new to Power BI and you're looking to learn DAX check out the link below.This will give you a good strat
https://www.sqlbi.com/learn/introducing-dax-video-course/
Many thanksMariusz