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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Calculations on column with different row values

Dear Friends,

How can I create a column with shown calculation attached in Power BI? Is there any way to do calculations based on upper and lower row values in the same column?

Calculation.jpg

Thanks for help.

 

Regards,

Ayaz

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous ,

Power bi not contains row/column index,you can't direct compare with specific rows.

In my opinion, I'd like to suggest you add or use existing index fields as lookup keys to find out current row and previous row records. Then you can add variables to store extract values and do compare with them.

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous ,

Power bi not contains row/column index,you can't direct compare with specific rows.

In my opinion, I'd like to suggest you add or use existing index fields as lookup keys to find out current row and previous row records. Then you can add variables to store extract values and do compare with them.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors