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
NovelKel
New Member

Multiplying Original Value by Multiple Varying Columns

Hello!

 

I am not sure how to approach this so I would welcome any direction. I have an original value that needs to be multiplied in sequence by varying numbers of columns. I do need the output of each arithmetic operation in the original column or another column.

 

Screenshot 2023-03-12 210346.png

 

Is there a smart way to do this in Power Query? I appreciate your help!

1 REPLY 1
Vijay_A_Verma
Super User
Super User

Use this

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8k0syShW0lEyNDAAkkZ6JkDSQM/YFEwZWIJk9MyVYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Headers = _t, Amount = _t, #"Multiplier 1" = _t, #"Multiplier 2" = _t, #"Multiplier 3" = _t, #"Multiplier 4" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Headers", type text}, {"Amount", Int64.Type}, {"Multiplier 1", type number}, {"Multiplier 2", type number}, {"Multiplier 3", type number}, {"Multiplier 4", type number}}),
    Custom1 = Table.FromRecords( Table.TransformRows(#"Changed Type", (r) => Record.TransformFields(r, {{"Multiplier 1", each r[Amount] * _}, {"Multiplier 2", each r[Amount]*r[Multiplier 1] * _}, {"Multiplier 3", each r[Amount]*r[Multiplier 1]*r[Multiplier 2] * _}, {"Multiplier 4", each r[Amount]*r[Multiplier 1]*r[Multiplier 2]*r[Multiplier 3] * _}})),Value.Type(#"Changed Type"))
in
    Custom1

 

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.