Forum Discussion
Trying to compare the difference between 2 dates recursively?
- 4 years ago
Hi Anonymous
try this:
Measure =
Var _M = Max(table[Report Dates])
Var _M1 = calculate(Max(table[Report Dates]),filter(all(table),table[Report Dates]<_M))
return
COUNTA(table[Backlog]) - calculate(COUNTA(table[Backlog]),filter(all(table),table[Report Dates]=_M1))If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi Anonymous
You can use a measure to add a new column to the matrix to show the variance, Try this measure:
Measure =
Var _M = Max(table[Report Dates])
Var _M1 = calculate(Max(table[Report Dates]),filter(all(table),table[Report Dates])<_M))
return
COUNTA(table[Backlog]) - calculate(COUNTA(table[Backlog]),filter(all(table),table[Report Dates])=_M1))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
- Anonymous4 years agoNot applicable
Hi VahidDM - your example appears to contain 10 opening braces ( but 12 closing braces? )
Have I missed something?
- VahidDM4 years ago
Super User
Hi Anonymous
try this:
Measure =
Var _M = Max(table[Report Dates])
Var _M1 = calculate(Max(table[Report Dates]),filter(all(table),table[Report Dates]<_M))
return
COUNTA(table[Backlog]) - calculate(COUNTA(table[Backlog]),filter(all(table),table[Report Dates]=_M1))If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/- Anonymous4 years agoNot applicable
That's great, thank you!