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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-rongtiep-msft
Community Support
Community Support

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
v-rongtiep-msft
Community Support
Community Support

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors