SOLVED

How to use the cell reference with GetPivotData

Copper Contributor

Hi Team,

 

I am trying to build relative references to an OLAP cube using the GETPIVOTDATA function "Excel 365".  When I create the initial formula by typing "=", arrowing onto a field in
the cube and pressing enter, I get the below view:

 

GetPivotData.PNG

I would like to replace "Dissatisfied" with a relative cell "M$1", also replace "X" with cell "$L1" so it should be working dynamic when I drag to right or down.

 

Any Help?

 

Thanks,

5 Replies
best response confirmed by Mohamed1988 (Copper Contributor)
Solution

@Mohamed1988 

Within formula you may change

.&[Dissatisfied]",
on
.&[" & M$1 & "]",

@Sergei Baklan , at least it works successfully, much appreciated!

@Mohamed1988 , you are welcome

@Sergei Baklan 

 

i am having a similar problem but your suggestion doesn't work for me. Can you see what is wrong here?

=GETPIVOTDATA("[Measures].[Sum of Quantity On Hand]",'TWE Pivot'!$A$3,"[Table2].[Item Number]","[Table2].[Item Number].&["&$A3&"]","[Table2].[Description]","[Table2].[Description].&["&$B3&"]")

@Nico_Beckers 

To be sure, are you on data model PivotTable or on cached PivotTable? Formula

=GETPIVOTDATA("[Measures].[Sum of Quantity On Hand]",
    'TWE Pivot'!$A$3,
    "[Table2].[Item Number]",
    "[Table2].[Item Number].&[" & A3 & "]",
    "[Table2].[Description]","[Table2].[Description].&[" & B3 & "]")

Please check in second sheet of the attached file.

1 best response

Accepted Solutions
best response confirmed by Mohamed1988 (Copper Contributor)
Solution

@Mohamed1988 

Within formula you may change

.&[Dissatisfied]",
on
.&[" & M$1 & "]",

View solution in original post