Running Multiplication-Power Query

anks_275

New Member
Joined
Jul 18, 2016
Messages
5
I keep thinking this should be easy but the answer is evading me. I would like to transform the value in each row of a column based on another column's value.
First cell in eff column is result of multiplication of Qty and rate and second cell is result of First value in Eff cell and 2nd value in rate column and so on. But the problem is as my product changes I need to perform same calculation for that product as well. For example in below table my product changes to B in table, i need to perform same calculation for that as well. Kindly help

[TABLE="width: 722"]
<tbody>[TR]
[TD]Index
[/TD]
[TD]Product
[/TD]
[TD]QTY
[/TD]
[TD]Rate
[/TD]
[TD]Eff
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]AC
[/TD]
[TD]1
[/TD]
[TD]0.9811
[/TD]
[TD]0.9811
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]ACC
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0.9811
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]ACCC
[/TD]
[TD]5026
[/TD]
[TD]0.9278
[/TD]
[TD]0.9102
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]AD
[/TD]
[TD]2034
[/TD]
[TD]1
[/TD]
[TD]2034
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]ADA
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]2034
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]ADAA
[/TD]
[TD]1
[/TD]
[TD]0.9
[/TD]
[TD]1830.6
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I think you are looking at this like it is a spreadsheet, but it is a database. A data base has no concept of "current row", previous row. This is maybe something you could do in power query. But a better approach is for you to explain the end state of what you are trying to do. Maybe there is a better/different way that you haven't thought of yet.
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top