Forum Discussion
Anonymous
4 years agoNot applicable
current vs previous week count
Hi Everyone, i have seen that dax doesnt have a previous week function, can someone assist in writing a measure that shows previous week counts to compare to that current week count as shown in the...
- 4 years ago
Var _maxWeekNum = max(weeknum)
return
Calculate(
countrows(table),
filter(
all(table),
table[weeknum] = _maxWeekNum - 1
)
)
vapid128
Solution Specialist
4 years agoVar _maxWeekNum = max(weeknum)
return
Calculate(
countrows(table),
filter(
all(table),
table[weeknum] = _maxWeekNum - 1
)
)