Forum Discussion
how to calculate cumulative decrease use DAX
- 3 years ago
VAR PreviousRow = CALCULATE( [Orders], OFFSET( -1, ALLSELECTED('Product'[yearmonth]), ORDERBY('Product'[yearmonth], ASC) ) )
RETURN [# Orders] - PreviousRow
Hello Anonymous ,
I hope this helpful for you if not so can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
VAR PreviousRow = CALCULATE( [Orders], OFFSET( -1, ALLSELECTED('Product'[yearmonth]), ORDERBY('Product'[yearmonth], ASC) ) )
RETURN [# Orders] - PreviousRow
Hello Anonymous ,
I hope this helpful for you if not so can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- Anonymous3 years agoNot applicable
Thanks, I am not quiet understand [# Orders] of "RETURN [# Orders] " , can you tell me what it stands for? Thanks.
- sivasrao3 years ago
Helper III
Hi,
What is the [Order] in the above function?
- Mahesh00163 years ago
Super User
Hello sivasrao ,
[Order] is Measure.- sivasrao3 years ago
Helper III
Hi,
thank you for your quick reply.
What is in [Order] measure?
Can you please elaborate on the total function?