Power Pivot lookup function

NewPowerUser

New Member
Joined
Feb 17, 2016
Messages
4
I'm brand new to using Power Pivot and I've come across a problem that I can't find find a solution to.

I'm trying to have excel pull back information(column B) from the PowerPivot data source based on an entry field(column A). I've tried researching the CubeMember funtion but I can't seem to get it to work.

My formula(Column B) is as follows:
=CUBEMEMBER("ThisWorkbookDataModel",{"[Building_Permits_Issued_-_Official].[Permit #].&A2","[Building_Permits_Issued_-_Official].[Permit Type Description].&A2"})

Hopefully, I'm just overlooking something very easy.

Thanks for you 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
Are you able to do this in a pivot table? Set up a pivot first that has your data. Then convert the pivot table to cube formulas OLAP TOOLS menu, convert to formulas. You can then look at the formulas and build a cell based alternative from there.
 
Upvote 0
Matt,

Thanks for the reply. I actually walked through these steps before I posted the forum question. I got to the point where I was tweaking the formula(column B) and got stuck.

Thanks again.
 
Upvote 0
What is in cell A2? It seems like you may be missing the square brackets (unless they are in cell A2). Also your double quotes are in the wrong place. I would assume the following will work. The cell A2 should have the child member without square brackets

=CUBEMEMBER("ThisWorkbookDataModel",{"[Building_Permits_Issued_-_Official].[Permit #].["&A2&"]","[Building_Permits_Issued_-_Official].[Permit Type Description].["&A2&"]"})
 
Upvote 0
well #NA normally means the item is not available as a child in the data model. Also the formula looks to me like it is pointing to 2 different columns. I can't see how that is possible. Try deleting one of the columns
 
Upvote 0

Forum statistics

Threads
1,224,153
Messages
6,176,729
Members
452,740
Latest member
MrCY

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