Cube Value Lookup

deharris

New Member
Joined
Dec 15, 2017
Messages
19
I have an Excel 2016 PowerPivot data model where I'm trying to find a member value based on whether 4 other member values exist. A sort if "if" statement. If Values A, B, C & D exist, bring me back value E. Value E can be 1 of three things based on values A-D being found. I've researched CUBEMEMBERPROPERTY but it doesn't seem to work with PowerPivot. To be clear, I'm looking for a label, not a number. I'm new to all the syntax for the more detail the better.

"Cube Formula"
"ThisWorkbookDataModel"
Values A-E all come from the same table.

thank you for any help.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I think This is what you need:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]c[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]APPLE[/TD]
[TD]BANANA[/TD]
[TD]PEACH[/TD]
[TD]ORANGE[/TD]
[TD]ANDY[/TD]
[TD][/TD]
[TD]STRAWBERRY[/TD]
[TD]MELON[/TD]
[TD]APPLE[/TD]
[TD]PEACH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]STRAWBERRY[/TD]
[TD]MELON[/TD]
[TD]APPLE[/TD]
[TD]PEACH[/TD]
[TD]JOHN[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Into K1 cell: {=INDIRECT("E"&MATCH(G1&H1&I1&J1,A:A&B:B&C:C&D:D,0))}
This will output name "JOHN" in column E based on the values in A, B, C and D columns.

It's an array formula so you have to Ctrl+Shift+Enter after paste.
 
Upvote 0
thank you for your reply. I believe your solution is an Excel solution and I'm looking for a way to write this as a Cube formula to retrieve data out of a power pivot data model.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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