Forum Discussion
fernandoglrt
7 years agoRegular Visitor
column calculated using values from previous rows from the same column
I need to create an indicator on power bi equal to one used in excel. Everything okay until I try to refer to the previous value of the indicator. Here's a screenshot of how the indicator structure w...
Aron_Moore
7 years agoSolution Specialist
Looks like you're after a rolling or cumulative. Try https://www.daxpatterns.com/cumulative-total/ or maybe a SUMX with EARLIER.
Basically, you need to tell the DAX which row so you'll need to use the date or an index column.
fernandoglrt
7 years agoRegular Visitor
In fact, this indicator is generated daily, based on the yesterday indicator number. This indicator column should calculate different results to each day. I need a dax formula that behave just like the excel formula.
- Aron_Moore7 years agoSolution Specialist
So maybe something like:
Measure = SUMX('Table', [Rate]* LOOKUPVALUE([Rate2], [Indicator], [Indicator]-1) )
- fernandoglrt7 years agoRegular Visitor
In this case I have problems with circular references.