Forum Discussion
Felipekard
3 years agoFrequent Visitor
Last day dax
Morning everyone, I has one calendar table, like this: Days: the days IS WORKDAY: 1 if is workday, 0 if isn't work day LAST WORKDAY: the workday -1 I need made this calculated column LAS...
- 3 years ago
You could create a column like
Last workday = VAR CurrentDate = 'Date'[Date] RETURN CALCULATE ( MAX ( 'Date'[Date] ), REMOVEFILTERS ( 'Date' ), 'Date'[Date] < CurrentDate, 'Date'[Is working day] = 1 )
johnt75
Super User
3 years agoYou could create a column like
Last workday =
VAR CurrentDate = 'Date'[Date]
RETURN
CALCULATE (
MAX ( 'Date'[Date] ),
REMOVEFILTERS ( 'Date' ),
'Date'[Date] < CurrentDate,
'Date'[Is working day] = 1
)
Felipekard
3 years agoFrequent Visitor
Works great! Thank you my friend.