Forum Discussion
Anonymous
3 years agoNot applicable
Previous value in DAX
Hello, I would like to use two sets of values for one timestamp, i.e. [Date]. Thus, all values before today, including today, have to be equal to value3. All values after today have to be equal ...
FreemanZ
Super User
3 years agohi Anonymous
try like:
VAR PrevValue =
MAXX(
FILTER(
TableName,
TableName[Date]=EARLIER(TableName[Date])-1
),
TableName[Value]
)
- Anonymous3 years agoNot applicable
FreemanZ when you use TableName[Value], what value is it?
- FreemanZ3 years ago
Super User
hi Anonymous
i was assuming you have a tablename[value] column
- Anonymous3 years agoNot applicable
FreemanZ In my case all three values are measures.
So, I would like to use values from value1 (or measure 1) until tommorrow, and then use either value2 or value3 (or measure 2 or measure 3) for future dates. At the same time I would like to connect this two sets values in form of a cumulative total.