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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
powerbisach
Helper I
Helper I

Apply similar formula to all rows of a calculated colum

Hi ,

 

I have this requirement where i have one column from which i need to get the Diff_amount and %Change

Column Calculation.png

The column Diff_amount and % change contains large rows, so i need to replicate the same formula for this column.

With excel i can easily perform a drag and drop operation. How this can be performed in powerbi adding a calculated columns.

1 ACCEPTED SOLUTION

@powerbisach

 

In Power BI, rows in table has no sequence internal. So if you want to handle some "previous/next" scenario on row level, you must create an index column in your table. You can do it in Query Editor. Then you can create your calculated column based on this index column easily.

 

44.PNG

 

Regards,

View solution in original post

3 REPLIES 3
powerbisach
Helper I
Helper I

Hi,

 

Unfortunately your solution did not worked. Any other idea?

@powerbisach

 

In Power BI, rows in table has no sequence internal. So if you want to handle some "previous/next" scenario on row level, you must create an index column in your table. You can do it in Query Editor. Then you can create your calculated column based on this index column easily.

 

44.PNG

 

Regards,

TomMartens
Super User
Super User

Hey, 

 

first create a calculated column using the LOOKUP() function

LOOKUPVALE('yourtable'[Amount], 'yourtable'[Year],'yourtable'[Year]-1) - 'yourtable'[Amount] for DiffColumn (or the other way round)

 

then, just create a calculated column using both columns

 

Hope this helps

Regards

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors