GetPivotData with cell reference in a Table

I was told that this might be a better place to post this question than Microsoft Answers for Office.
I have a Table in which I need to use a GetPivotData function.  I need to use a cell reference in that GetPivotData function.  I have done this before with no problem in a normal cell range, but it seems like the syntax when using a Table screws
things up.  Can anyone help me out here?
The GetPivotTable function would normally look like this if not in a Table.
=GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
That formula sits in a column called "Block" in my Table.  The 18418 sits in a column called "ID" in my table.  So what I have tried is:
=GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'--Report Blocks--'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]",concatenate("[Dim Prod Ctrl No].[By Prod Ctrl No].&[",[@[ID]],"]"))
I have tried a few combinations like this but I can't seem to use a cell reference from a table (which requires the [@[field]] syntax) to work with the GetPivotData.
Any ideas?
Thanks!

That's not the issue.  The GETPIVOTDATA function is actually IN a table.  The arguments for the GETPIVOTDATA function need to reference a cell/column in the table, and it's only PART of the argument that needs to be replaced.  In the example
below the 18418 needs to be replaced with the data in the same row of the table in a column named ID.
=GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
Does that clarify any?
Thanks for the response!

Similar Messages

  • Scaling factors for queries with cell references

    Hello Experts,
    We have this issue, we have queries which have 2 global structures with the cell references for few of the elements of rows and columns structure.
    we need the scaling factors and currencies of the query which are defined in the rows and columns structure are to be displayed as separate column but with in the cells.
    We have checked for the queries with the 2 structures without cell references are displayed as we need. But for the queries with the cell references on the 2 structures are not displaying the scaling factors as we need in separatly.
    how can we make the query to display the scaling factors along with currencies to be in separate column.
    we have entry selection as currency where we have only one currency can be entered so the we do not have the problem of multiple currencies.
    please find the screen shot how we need the scaling factors to be displayed for the queries with cell references.
    We have scaling factors enabled as 1000 for KFs and for % selections we have scaling factors as 1.
    Thanks,
    Santhosh

    Hi
    If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
    If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
    Regards
    Sandeep

  • Cell references to other tables, keep from changing

    Here's what I am trying to do. I have two tables, in two sheets. Sheet 1::Table 1 and Sheet 2::Table 2.
    The cells in Table 2 are all referenced to cells in Table 1 (with a formula that looks like =Table 1::X7).
    I want to be able to move the rows in Table 1 around but have the formulas in Table 2 not change their reference. Now it seems they follow along. So the reference in Table 2 is =Table 1::X7 and I move row 7 in Table 1 so that it becomes row 6, my reference in Table 2 changes to =Table 1::X6. I don't want it to change. Changing the reference from relative to absolute doesn't seem to change this.
    Any suggestions?
    Thanks! Brian

    "I looked at INDEX and OFFSET but from what I can tell they don't accept a parameter for a different table."
    OFFSET's base can be set as a cell on a different table. If that cell is in a Header row, it will not be included in sorts of the table, so in many cases cell A1 is chosen as 'base' (with row 1 set as a Header row), and offsets are calculated from that cell.
    The example below shows results using OFFSET in columns B and C, and INDEX and OFFSET in column D, all of Table 2, to retrieve values from column X of Table 1. The yellow-filled row on Table 2 retrieves the values from the same cell as your =Table 1::X7 formula above. X7 is in the green filled row of Table 1.
    The second pair of tables shows duplicates of the same pair of tables. Table 1 in this row has been sorted on the values in column B. Note that what was Row 7 of Table 1 is now Row 4 (although it is still labeled Row 7 in column A). Table 2 has not been sorted. The yellow-filled row is still in the same position and the formula in each of the three cells remains the same as it was in the first version of the table. The value retrieved is from cell X7 on the sorted Table 1.
    Formulas (all in Table 2, entered in row 2, then filled down to row 10):
    B2: =OFFSET(Table 1 :: $A$1,ROW()-1,23)
    C2: =OFFSET(Table 1 :: $X$1,ROW()-1,0)
    These two are pretty much the same.
    The first uses A1 as the base, and requires a column offset of 23 steps to arrive at column X.
    The second uses X1 as the base, and requires a column offset of 0 to remain in column X.
    The row offset for both is set by the row in which the formula resides. ROW() returns the row number, from which 1 is subtracted to give an offset from row 1 of one step less than the row number of the formula's position.
    D2: =INDEX(OFFSET(Table 1 :: $X$1,0,0,ROWS(Table 1 :: $X)),ROW())
    This one uses OFFSET's ability to capture several values in an internal array, triggered here by adding a fourth argument to the function ( ROWS(Table 1::$X) ), to define the row-range as 'all of the rows in column X'. The values are extracted using INDEX.
    Although INDEX has its uses, here I think it is redundant, and would use either of the two previous examples.
    Regards,
    Barry

  • How do I reference cells from a different table/ sheet in the same document

    Say I have a Sheet that contains two Tables: [A] and . Is it possible to cross-reference the content of a cell in Table [A] from Table and use it to create a function in Table ?
    Eg: =SUM[TableA(K20)]+[TableB(F20:F50)]
    Could I similarly cross-reference the content of cells in Tables in different Sheets?
    Thanks,
    Seb

    Seb,
    Yes, you can. With the cursor in the location where you want to place the external reference, navigate to your Sheet and Table of choice and click the cell that you wish to reference. The external reference will appear in the formula.
    Note however that we are talking about different sheets in the same Numbers file. We can't reference sheets or tables in other files.
    Jerry
    Message was edited by: Jerrold Green1

  • Calc: How can I get absolute cell references in tables to work?

    Hi, I'm new to Star Office, and have run into a problem in my first spreadsheet.
    I have a data table in my spreadsheet.
    Some cells in the table need to make calculations based on other cells in the table.
    When I sort the table, however, the cell references are made to be incorrect. I expected that I could just use absolute references (e.g. $A$2) and when the table was sorted those references would be updated to refer to the new absolute location of that cell, e.g. $A$10). However, the absolute references are being left literally the same ($A$2) after the sort, making them reference a different row of data than intended. Relative references of course don't work in this situation either (I tried for thoroughness). (I thought Excel behaved the way I expected, but I just tried it in Excel 2007 and it is exhibiting the same behavior as StarOffice Calc.)
    I'm also concerned, although I haven't tried it yet, about what will happen when I reference cells in this table from another table using absolute references that the same problem will exist...
    So basically, I can't find a way to use absolute references to cells in a table that will persist correctly when the table is sorted. Any suggestions?
    Thanks. Asa
    Edited by: earthasa on Sep 20, 2007 2:37 AM
    I was able to work around the problem by creating an index column in the table with a unique number for each row of data and using vlookup() to reference the correct row. If there is a more elegant solution I'm still interested :)
    Edited by: earthasa on Sep 20, 2007 3:00 AM

    OK. Think I've got it now thanks to looking at the short keys and searching for "Full Screen".  The upper left key is "`" which looks like a grave - a slightly angled single quote. But when I look at the "Application" setting for Toggle full screen it is set to "'" - a "normal" single quote.  Sure enough, if I hit the normal single quote key the toggle works.
    I have not been anywhere near the hotkeys and can't imagine why anything would change it from a grave key to a single quote - especially as they look almost identical on the screen.  I'm guessing that Adobe changed this (maybe only for international users?)
    Anyway I now know how to toggle full screen, although it makes the "Premiere" keyboard with its big purple key for "Toggle full screen" redundant.  Does make me wonder what the shortcut key of "'" or CTRL + "'" gives that I'm presumably missing since it appears to have been remapped.

  • Locking cell references in Pages 2 tables... "$" works...

    One thing I haven't found any documentation on (I'll admit, it might be there, I just haven't yet found it) is that you can lock cell references in Pages 2 using "$", so that when you auto fill a column or row, it won't automatically change a particular cells reference if it is marked accordingly. if cell C1 is "=$A$1+B1" and is autofilled down column C, the calculation will be
    C1=$A$1+B1,
    C2=$A$1+B2,
    C3=$A$1+B3
    etc.... A1 is locked, while the B cell references change as expected.
    As I said, maybe it's there and I'm just looking in the wrong spot.
    G4 dual 1ghz Desktop, MacBook, iPod   Mac OS X (10.4.8)  

    yes, i think all dedicated spreadsheet programs do. but with the limitations that are in the tables ability (such as very basic arguments, the ones available being documented), it is a handy way of avoiding a lot of necessary filling, and can allow more complex tables to be built. look forward to more incorporated in Pages 3 with Apple apparently releasing a dedicated spreadsheet program with iWork.
    G4 dual 1ghz Desktop, 12 Powerbook G4, iPod   Mac OS X (10.3.9)  

  • Absolute cell references with named cells?

    I know how to make a cell reference absolute with numbered cells, as in $A12.
    But what if the formula includes named cells, as in:
    =Table 1 :: 'Electric - Tank' Annual Fuel Cost+Table 1 :: 'Electric - Tank' annual maintenance
    I have tried the $ in various places, no luck so far. Please help...

    I found another similar thread, and the folks there helped me figured out what I was doing wrong.
    You need $ before EACH reference, both the cell's Row header AND column header. This made sense for the "old" cell label way, but the header names confused me at first. So:
    =Table 1 :: $Electric Tank $Annual Fuel Cost+Table 1 :: $Electric Tank $annual maintenance

  • Join 2 tables with a reference table

    I have two large tables that I am trying to join together by two columns. Below are the tables with two samples in each table, the reference table and also the final result that i want. Can anyone help me and any pointers. Thank you so much. 
    Join on xAlias = mAlias 
    Join on xValue =mValue
    And if xValue =mValue is null then look at xRefValue = mRefValue
    Result

    Please provide example data in tables. For an example of this, see the top of the code.
    Try this:
    DECLARE @1stTable TABLE (xitem VARCHAR(15), xAlias VARCHAR(30), xvalue VARCHAR(30))
    INSERT INTO @1stTable (xitem, xAlias, xvalue)
    VALUES
    ('HGJ53456FCN','Finish/Coating', 'Black Oxide'),('HGJ53456FCN','Series/List', '8301'),('HGJ53456FCN','Material', 'High Speed Steel-E'),('HGJ53456FCN','Number of Flutes', '3'),('HGJ53456FCN','Overall Length (Inch)', '3-19/32'),
    ('HGJ53456FCN','Threads Per Inch', '12'),('HGJ53456FCN','Thread Limit', 'H3'),('HGJ53456FCN','Shank Diameter (Inch)', '0.429'),('HGJ53456FCN','Thread Size (Inch)', '9/16-12'),('HGJ53456FCN','Chamfer', 'Plug'),
    ('HGJ53456FCN','Thread Direction', 'Right Hand'),('HGJ53456FCN','Thread Length (Inch)', '63/64'),('HGJ53456FCN','Thread Standard', 'UNC'),('LOP65986','Finish/Coating', 'Black Oxide'),('LOP65986','Series/List', '5303S'),
    ('LOP65986','Material', 'High Vanadium High Speed Steel'),('LOP65986','Number of Flutes', '4'),('LOP65986','Overall Length (Inch)', '38078'),('LOP65986','Threads Per Inch', '10'),('LOP65986','Thread Limit', 'H3'),
    ('LOP65986','Shank Diameter (Inch)', '0.59'),('LOP65986','Thread Size (Inch)', '3/4-10'),('LOP65986','Chamfer', 'Bottoming'),('LOP65986','Thread Direction', 'RIGHT Hand'),('LOP65986','Thread Length (Inch)', '2'),
    ('LOP65986','Thread Standard', 'UNC')
    DECLARE @2ndTable TABLE (mItem int, mAlias varchar(30), mValue varchar(50))
    INSERT INTO @2ndTable (mItem, mAlias, mValue)
    VALUES
    (53456, 'Manufacturer''s Part Number', NULL),(53456, 'Chamfer', 'Plug'),(53456, 'Finish/Coating', 'Oxide'),(53456, 'Material', 'Vanadium High Speed Steel'),(53456, 'Material Application', 'Carbon Steel; Hardened Steel; Stainless Steel'),
    (53456, 'Number of Flutes', '3'),(53456, 'Overall Length (Inch)', '3-19/32'),(53456, 'Oversize (Yes/No)', 'No'),(53456, 'Series/List3', '00'),(53456, 'Shank Diameter (Decimal Inch)', '0.4290'),
    (53456, 'Square Size (Decimal Inch)', '0.3220'),(53456, 'Thread Direction', 'RIGHT Hand'),(53456, 'Thread Length (Inch)', '1-21/32'),(53456, 'Thread Limit', 'H3'),(53456, 'Thread Size (Inch)', '9/16-12'),
    (53456, 'Thread Standard', 'UNC'),(53456, 'Through Coolant (Yes/No)', 'No'),(65986, 'Manufacturer''s Part Number', NULL),(65986, 'Chamfer', '2-1/2'),(65986, 'Finish/Coating', 'Oxide'),
    (65986, 'Material', 'High Speed Steel'),(65986, 'Material Application', 'Cast Iron; Ductile Iron; Steel'),(65986, 'Number of Flutes', '4'),(65986, 'Overall Length (Decimal Inch)', '4.2500'),(65986, 'Overall Length (Inch)', '4-1/4'),
    (65986, 'Oversize (Yes/No)', 'No'),(65986, 'Shank Diameter (Decimal Inch)', '0.5900'),(65986, 'Thread Direction', 'RIGHT Hand'),(65986, 'Thread Length (Decimal Inch)', '2.0000'),(65986, 'Thread Length (Inch)', '2'),
    (65986, 'Thread Limit', 'H3'),(65986, 'Thread Size (Inch)', '3/4-10'),(65986, 'Thread Standard', 'UNC'),(65986, 'Through Coolant (Yes/No)', 'No')
    DECLARE @refTable TABLE (aliasName VARCHAR(30), xRefValue VARCHAR(40), mRefValue VARCHAR(50))
    INSERT INTO @refTable (aliasName, xRefValue, mRefValue)
    VALUES
    ('Finish/Coating','Black Oxide','Oxide'),('Finish/Coating','SH47 Oxide Nitride','Oxide'),('Finish/Coating','Steam Oxide','Oxide'),('Material','High Speed Steel-E','Vanadium High Speed Steel'),('Material','High Vanadium High Speed Steel','Vanadium High Speed Steel'),
    ('Material','High Vanadium High Speed Steel-E','Vanadium High Speed Steel'),('Material','High Vanadium High Speed Steel-E-PM','Vanadium High Speed Steel'),('Material','High Speed Steel','Vanadium High Speed Steel'),('Material','Carbide','Solid Carbide'),('Material','Powdered Metal Cobalt','Powdered Metal'),
    ('Material','High Vanadium High Speed Steel','High Speed Steel'),('Material','High Carbon Steel','High Speed Steel'),('Material','High Speed Steel-E','High Speed Steel'),('Material','High Vanadium High Speed Steel-E','High Speed Steel'),('Material','High Speed Steel','High Carbon Steel'),
    ('Material','High Speed Steel-E-PMT15 Cobalt','Cobalt Vanadium High Speed Steel'),('Material','High Speed Steel Cobalt','Cobalt'),('Material','High Speed Steel-E Cobalt','Cobalt'),('Material','High Speed Steel-E-PMT15 Cobalt','Cobalt'),('Material','High Carbon Steel','Carbon Steel'),
    ('Material','Bottoming','2-1/2'),('Material','Taper','2-1/2'),('Material','Bottoming','1 to 3-1/2'),('Material','Taper','1 to 3-1/2')
    SELECT xItem, mItem, xAlias, xValue, mValue
    FROM @1stTable st
    INNER JOIN @2ndTable nd
    ON st.xAlias = mAlias
    AND st.xValue = mValue
    LEFT OUTER JOIN @refTable rt
    ON st.xAlias = rt.aliasName
    AND st.xvalue = rt.mrefValue
    ORDER BY xItem, xAlias

  • Impossible to use SAPGETDATA function from an intermediary level of a hierarchy with a cell reference.

    Hi Gurus,
    It is impossible to use SAPGETDATA function from an intermediary level
    of a hierarchy with a cell reference.
    When I open completely a hierarchy node I manage to get the bottom level
    using a cell reference.
    But I cannot do the same thing from a level above.
    I attach screenshots.
    Best regards,
    Thierry Chiret

    Hello,
    I find the soluce :
    Regards,
    Thierry

  • The DELETE statement conflicted with the REFERENCE constraint "FK_Equipment_Assets". The conflict occurred in database "WorkOrderSystem", table "dbo.Equipment", column 'AssetCode'........can someone give me a solution for this Error.

    The DELETE statement conflicted with the REFERENCE constraint "FK_Equipment_Assets". The conflict occurred in database "WorkOrderSystem", table "dbo.Equipment", column 'AssetCode'

    ya that's true row is referenced by another table.....but i want the row to referred by another table ,I don't know how to fix it
    Actually this is not a C# issue. It is a T-SQl issue.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=transactsql
    The above link should be posted.
    Per my understanding, first you should
    delete the record from the Foreign Table and then after you have to delete the record from the Primary Key table
    Hope it helps you.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to display text with image in a cell of web dynpro table.

    Hello,
    I am unable to display an image with the text inside a cell of web dynpro table. The image doesn't come at all. I am trying to display the image of an object and the object description alongside within the same cell.
    Thanks and Regards,
    Abhijnan

    Hi
    Pls check the below link
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9b/46bb0d339b42cc8d30636ca0c9f5b6/frameset.htm
    The only problem is only the below UI elements are supported
    ■Button
    ■ToggleButton
    ■LinkToUrl
    ■LinkToAction
    ■FileDownload

  • Building Expressions with Repeated Cell References

    I have noticed a difficulty with building an expression using the 'Point and Click' method of inserting Cell References in Numbers 09.
    The first time a particular cell is clicked, its reference is inserted properly in the expression at the cursor. If another reference to the same cell is required in that expression, clicking on the cell again does not result in another reference to it at the cursor, instead the cursor jumps to the previous reference to that cell.
    The two options for adding a second or third reference to a particular cell are to type the reference or to keyboard-navigate to the cell with the Option key.
    Am I missing something?
    Jerry

    Jerrold Green1 wrote:
    Yvan,
    A solution looking for a problem in my case! I like the drop-down menu for reference type,
    I like the drop down menu too but I don't understand why the ƒx button appears only when I type = in a cell.
    I always send the mouse to the format bar before typing = (as I did in AppleWorks and Numbers '08).
    I may understand why they moved the Cancel and Accept buttons to spare some pixels for the formula but from my point of view, moving this ƒx button is boring
    But maybe I'm the unique user with this epidermic reaction.
    Yvan KOENIG (from FRANCE jeudi 19 février 2009 18:28:03)

  • Add Row instance but with adjusted cell references

    Is there a by to use the  AddInstance and have the cells in the "new" row have adjusted cell references , such as Cell1-1, Cell1-2 or will they have the same name always?
    I want the info from the cells to link elsewhere with Global Binding.
    Thanks,
    tucson102

    You cannot change the names of form objects during runtime.
    When you repeat an existing row, all child elements (cells) will have the same name as in the other instances of the row.
    Table1.Row[0].Cell1, Table1.Row[0].Cell2, Table1.Row[0].Cell3 etc.
    Table1.Row[1].Cell1, Table1.Row[1].Cell2, Table1.Row[1].Cell3 etc.
    Table1.Row[2].Cell1, Table1.Row[2].Cell2, Table1.Row[2].Cell3 etc.
    Table1.Row[3].Cell1, Table1.Row[3].Cell2, Table1.Row[3].Cell3 etc.
    If you make those cells binding global all cells with the same name will be global too and have the same value.

  • Working with strings and cell references

    Hi all,
    I'm a fairly new user to the Mac world but I'm a power user of Excel trying to moving into the number environment. I'm currently experiencing some very inconsistent behaviour working with text strings in Numbers.
    I've used both '&' and CONCATENATE to try to concatenate strings and cell references and regualarly I'm getting the situation where the formula initially works and then when I save and reopen the file the cells containing the error return a syntax error.
    Upon examining the formula it appears that the cell references are converted from cell references to simple text so & (b2) & becomes &b2&.
    Any ideas what is causing this?

    I apoligise for this tardy response. Firstly, the issue occurred not when I first create the formula but when I save, close and reopen the document.
    Upon examining the formula, the cell reference is not being recognised and so instead of A2 referencing a cell it's simple A2 which causes an error.
    And this is happening in more than one cell (whole rows of cells actually as I've often created a formula and copied it down 10 or 200 rows).
    It is also happening on more than one file Badunit so I don't think it's a corrupt file.
    It's more than a little annoying though as it means every few days when I go back in to a file I need to spend a few minutes recreating the formulas.
    Any other suggestions?
    Oh and I've tried both methods of formula creation of typing the reference and clicking, but the result is the same.
    Message was edited by: Un-decided

  • Create a VC Model for BEx queries with Cell Editor

    Hello All,
    I am trying to create a VC Model for BEx queries with Cell Editor.
    BW Development Team has created a BEX query with complex restrictions and calculations using Cell Editor feature of BI-BEX.
    The query output in BEx analyzer is correct where all values are being calculated at each Cell level and being displayed.
    But, while creating VC model, system is not displaying the Cells.Thus, no VC Model can be created.
    I have executed below steps:
    1. Created a VC Model for BEx Query - ZQRY_XYZ
    2. Create Iview -> Create a dataService -> Provide a Table from the Output
    In the Column field system is not showing any of the Cells (present in Cell Editor)
    Please help me to solve this issue.
    Thanks,
    Siva

    Hi
    If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
    If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
    Regards
    Sandeep

Maybe you are looking for

  • Some observations on my first use of Data Modeler Beta

    First of all, I can see this tool has a lot of promise. I hope Oracle keeps at it, it could turn into a real winner if all the features I see being worked on mature. Thanks! Here are a few observations on things that I found non-obvious or tedious to

  • Help please - phone icon only found in spotlight - how do i get it back!

    OK - so ,,,,I was moving my apps around to try get them organised and as i normally do i moved the 4 main apps off the bottom bar onto a page so i could then move icons onto the bottom bar to quickly move them to the new pages.... are you following m

  • PRT - Updation of Mea.Doc. in REM Process

    Experts I want the measurement document to be updated automatically when a production order is confirmed. I tried this by creating an equipment as a PRT attaching measurement point (counter) to it and a plan. The measurement document was updated when

  • Creating Guides in PSE?

    I have not found a way to create Guides in PSE 4 or 5, or any information on doing this. Can anyone tell me how this can be done? Also, guides made on a file created in Photoshop 7 or CS2 do not show up when the file is opened in Elements - is there

  • ENHANCEMENT:  Sort thread by Date

    As suggested by Host Kady, we are now extracting Bugs and Enhancements from our consolidation threads, and re-posting them individually. Reported by Da Gopha: There is no longer any way to sort a long thread by date. It used to be possible (in Tree v