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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.