gavs73

Board Regular
Joined
Apr 22, 2008
Messages
138
Hi

Would appreciate any help with this GETPIVOTDATA, I need to make it dynamic, and link &[2.018E3] to a year in a cell and&[1.] to week in a cell. I've tried a few things but nothing is working.

=GETPIVOTDATA("[Measures].[MP Count]",'[3Data.xlsx]ATT ENT'!$A$4,"[Subscriptions].[Attend Type]","[Subscriptions].[Attend Type].&[3MONTH]","[Subscriptions].[Trans Type]","[Subscriptions].[Trans Type].&[ATT]","[Subscriptions].[Start Fiscal Year]","[Subscriptions].[Start Fiscal Year].&[2.018E3]","[Subscriptions].[Start Fiscal Week]","[Subscriptions].[Start Fiscal Week].&[1.]")


Thanks for your help.

Gavin
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
What exactly is in the two cells, and what did you try that didn't work?
 
Upvote 0
Hi Rory, C2 = 2018 and C1 = 1, I've also tried '2018 and '1 and 2.018E3
I've tried "[Subscriptions].[Start Fiscal Year].&["&C2&"]" , "[Subscriptions].[Start Fiscal Year].&"&C2 , "[Subscriptions].[Start Fiscal Year]","[Subscriptions].[Start Fiscal Year].["+C2&"]"
Thanks
Gavin
 
Upvote 0
Does this work:

=GETPIVOTDATA("[Measures].[MP Count]",'[3Data.xlsx]ATT ENT'!$A$4,"[Subscriptions].[Attend Type]","[Subscriptions].[Attend Type].&[3MONTH]","[Subscriptions].[Trans Type]","[Subscriptions].[Trans Type].&[ATT]","[Subscriptions].[Start Fiscal Year]","[Subscriptions].[Start Fiscal Year].&["&C2&"]","[Subscriptions].[Start Fiscal Week]","[Subscriptions].[Start Fiscal Week].&["&C1&".]")

or perhaps:

=GETPIVOTDATA("[Measures].[MP Count]",'[3Data.xlsx]ATT ENT'!$A$4,"[Subscriptions].[Attend Type]","[Subscriptions].[Attend Type].&[3MONTH]","[Subscriptions].[Trans Type]","[Subscriptions].[Trans Type].&[ATT]","[Subscriptions].[Start Fiscal Year]","[Subscriptions].[Start Fiscal Year].&["&SUBSTITUTE(TEXT(C2,"0.000E+00"),"+","")&"]","[Subscriptions].[Start Fiscal Week]","[Subscriptions].[Start Fiscal Week].&["&C1&".]")
 
Upvote 0
Can you post a workbook somewhere for testing?
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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