Excel OLAP question referencing other cells

Status
Not open for further replies.

aivoryuk

Board Regular
Joined
Nov 18, 2009
Messages
130
I have this simple query

=CUBEMEMBER("localhost RiskCube3 Risk Cube",{"[Client].[PK Accountid].&[2]","[Date].[PK Date].&[2011-11-23T00:00:00]"})

But what I would like to do is rather than hardcode the values I would like them to reference another cell in excel

I can do this by

=CUBEMEMBER("localhost RiskCube3 Risk Cube","[Date].[PK Date].&["&D3&"]")

and for the date

=CUBEMEMBER("localhost RiskCube3 Risk Cube","[Client].[PK Accountid].&["&C2&"]")

but I can't get these to work together

=CUBEMEMBER("localhost RiskCube3 Risk Cube",{"[Client].[PK Accountid].&["&C2&2]","[Date].[PK Date].&["&D3&"]"})

I keep getting the formula error message.

Also for the date part the reference cell may not be in the standard SSAS format by in dd/MM/yyyy format (and without time) so what would be the best way to format this?
I can use a helper cell =CONCATENATE(TEXT(D2,"yyyy-mm-dd")) but then i need to add the T00:00:00

Regards
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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