The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
Solved! Go to Solution.
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])
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.
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])
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.
User | Count |
---|---|
81 | |
81 | |
37 | |
34 | |
31 |
User | Count |
---|---|
94 | |
80 | |
60 | |
50 | |
49 |