PowerPivot with Match/index or Vlookup/Hlookup

Kalle123

New Member
Joined
May 5, 2015
Messages
24
Hi!

I have a problem. I have a powerpivot. In one table (Sale) I have four columns (Item name (A), Item group (B), Weeks left to sell the item (C), Capacity (D)). In another table (Target) I have my targets and there are several columns (Item group1, 15, 14 ,13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0). The number shows what the sale target is when there a X weeks left to sell. Sale.Item group is related to Target.Item group1

I want the PowerPivot to check the row where it can find the same Item Group and then the corrosponding column for weeks left to sell. If it would be ordinary excel I would have used formula. =INDEX(Target!A:Q;MATCH(B2;Target!A:A;0);17-C2) or VLOOKUp with a HLOOKUP. Is it possible to do a similar formula in PowerPivot?

Best regards
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I don't believe it's possible in that type of formula. That formula references R1C1 and PowerPivot can only reference columns. Your best best is to pull the data you need via slicer into excel through a PowerPivot, then have those formula's reference the data.
 
Upvote 0
You almost certainly want to unpivot the targets so that you have lots of rows, instead of lots of columns... then we can get somewhere.
 
Upvote 0

Forum statistics

Threads
1,224,104
Messages
6,176,372
Members
452,725
Latest member
nicolasscosta

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