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

Index
Product
QTY
Rate
Eff
1
AC
1
0.9811
0.9811
2
ACC
1
1
0.9811
3
ACCC
5026
0.9278
0.9102
4
AD
2034
1
2034
5
ADA
1
1
2034
6
ADAA
1
0.9
1830.6

<tbody>
</tbody>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,216,022
Messages
6,128,326
Members
449,441
Latest member
khankins

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