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
tonyclifton
Helper III
Helper III

Calculation with value of previous row

Hello community,

 

I want to recreate the following simple Excel formula but can't get it right in Power Bi:

step.png

 

 

 

 

 

I want to create a calculated column (Deviation) based on the Value column, where each step takes the value of the previous step multiplied by 5%.

"Step" is only one column in Power Bi (one row value for each Step).

 

Hoping for some tips.


Thank you.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @tonyclifton 

 

You could add an index column after transposition, so you can create a calculate column using the DAX to reach your solution.

transpose index.JPG

Deviation =
VAR initialvalue = 50
RETURN
    IF ( Sheet1[Index] = 1, [Value], initialvalue * 0.95 ^ ( [Index] - 1 ) )

calculate 0.95.JPG


Paul

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @tonyclifton 

 

You could add an index column after transposition, so you can create a calculate column using the DAX to reach your solution.

transpose index.JPG

Deviation =
VAR initialvalue = 50
RETURN
    IF ( Sheet1[Index] = 1, [Value], initialvalue * 0.95 ^ ( [Index] - 1 ) )

calculate 0.95.JPG


Paul

Thanks a lot @Anonymous

This is what I was looking for.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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