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
=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