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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
HORISEN
Regular Visitor

Add each row with the one column from the row above and display value in new column

Hi everyon,

 

I am new to PowerBi, but I already spent quite some time with creating reports.

Now I am stuck by calculating each row. During my research I came across EARLIER, etc. 

 

Maybe someone could help me.

 

The goal is to add the previous row/column to current row/column and show that value in new column. Basically, adding up each row to next one.

 

Here is an example, it should be easier to understand what I am trying to create. 

 

Bildschirmfoto 2022-09-13 um 17.03.58.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HORISEN ,

I have create a simple sample, please refer to it to see if it helps you.

Add an index column.

Then create 2 columns.

sumvalue = 'Table'[IN]+'Table'[OUT]
result = SUMX(FILTER('Table','Table'[Index]<=EARLIER('Table'[Index])),'Table'[sumvalue])

vpollymsft_0-1663122346445.png

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @HORISEN ,

I have create a simple sample, please refer to it to see if it helps you.

Add an index column.

Then create 2 columns.

sumvalue = 'Table'[IN]+'Table'[OUT]
result = SUMX(FILTER('Table','Table'[Index]<=EARLIER('Table'[Index])),'Table'[sumvalue])

vpollymsft_0-1663122346445.png

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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