Forum Discussion
kleien
6 years agoRegular Visitor
DAX - Reference to previous value
Hi everyone! I need help with this. How can i create calculated column and within it reference to previous value in DAX I need this:
- 6 years ago
Hi kleien ,
Create a calculated column like this:
Result = CALCULATE( PRODUCT('Table'[Quantity]), FILTER( ALL('Table'), 'Table'[Quantity] <= EARLIER('Table'[Quantity]) ) )Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
v-yingjl
Community Support
6 years agoHi kleien ,
Create a calculated column like this:
Result =
CALCULATE(
PRODUCT('Table'[Quantity]),
FILTER(
ALL('Table'),
'Table'[Quantity] <= EARLIER('Table'[Quantity])
)
)
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.