Power Pivot Data Model: GETPIVOTDATA | #REF! error

jajatidev

Board Regular
Joined
Jul 29, 2016
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hi,
I'm working on a chart view by pulling data from Pivot Tables.

Here is the get data formula I begin with;
Excel Formula:
=GETPIVOTDATA("[Measures].[Min of RunningTotal]",availability!$A$4,"[availability].[Material]","[availability].[Material].&[ABD6017895]","[Calendar].[Week]","[Calendar].[Week].&[2023-11-06T00:00:00]")

I modified by introducing a cell reference to identify material instead of hard-coaded material number.
Excel Formula:
=GETPIVOTDATA("[Measures].[Min of RunningTotal]",availability!$A$4,"[availability].[Material]","[availability].[Material].&["&$B$2&"]","[Calendar].[Week]","[Calendar].[Week].&[2023-11-06T00:00:00]")

However, I can't manipulate the week field to make it dynamic. I have tried out the following but no success.

["&TEXT(F3,"MM/DD/YYYY")&"T00:00:00]
["&TEXT(F3,"MM/DD/YYYY""T00:00:00""")&"]

Please advice how to fix it.

Regards,
jajatidev
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,
I was able to identify the issue with the date formate and fixed it.

["&TEXT(F3,"YYYY-MM-DD""T00:00:00""")&"]
 
Upvote 0
Solution

Forum statistics

Threads
1,221,497
Messages
6,160,154
Members
451,625
Latest member
sukhman

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