Powerpivot date problem

Paul Wakefield

New Member
Joined
Sep 11, 2002
Messages
40
I am trying to use the Cubevalue function but am having a problem when using a reference to a date in a cell.

e.g.

=CUBEVALUE("powerpivot data","[Sum of "&B$9&"]","[Current].["&'Scheme Tables'!E21&"]","[SchemeName].["&$A10&"]","[FormatDate].[02/11/2009]")

works fine but I can not get

=CUBEVALUE("powerpivot data","[Sum of "&B$9&"]","[Current].["&'Scheme Tables'!E21&"]","[SchemeName].["&$A10&"]","[FormatDate].["&C4&"]"),

where C4 holds the date, to work.

I have tried all sorts of date/numeric formats both in the cell and in the Powerpivot table with no success.

Any help would be gratefully received.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try

=CUBEVALUE("powerpivot data","[Sum of "&B$9&"]","[Current].["&'Scheme Tables'!E21&"]","[SchemeName].["&$A10&"]","[FormatDate].["&TEXT(C4,"dd/mm/yy")&"]")

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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