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 September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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