Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
fernandoglrt
Regular 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 works in excel. How could i do this "G2" reference in power bi?

excel.PNG

4 REPLIES 4
Aron_Moore
Solution Specialist
Solution 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.

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.

So maybe something like:

    Measure = SUMX('Table', [Rate]* LOOKUPVALUE([Rate2], [Indicator], [Indicator]-1) )

In this case I have problems with circular references.pbiw.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.