+ Reply to Thread
Results 1 to 7 of 7

How to refer to virtual table column in a meaure

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    520

    How to refer to virtual table column in a meaure

    Hi,
    I have been trying to use a column created in summarize in a meaure but get an error, this is not the same problem but
    illustrates better what the problem isl
    ;
    Please Login or Register  to view this content.
    This returns a table with new column "N" , but the below returns an error, VAUES returns table countrows counts rows of table
    What's the problem?

    Please Login or Register  to view this content.


    Richard

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,423

    Re: How to refer to virtual table column in a meaure

    From Help:
    SUMMARIZE should not be used to add columns. As an alternative, use SUMMARIZECOLUMNS or ADDCOLUMNS / SUMMARIZE.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    520

    Re: How to refer to virtual table column in a meaure

    Fair enough but add columns does not seem to work ether ,

    example

    Please Login or Register  to view this content.

    Richard.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,480

    Re: How to refer to virtual table column in a meaure

    You don't include the table name, but I don't understand what you are trying to achieve here?
    Rory

  5. #5
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    520

    Re: How to refer to virtual table column in a meaure

    Sorry still can't get this to work, this started when I wanted to use a virtual column in TOPN, i have since found a way to get the result I wanted and do
    have a question regarding that.

    but i can't get this to work work with the VALUES,

    Please Login or Register  to view this content.

    Which I would have thought would bring back a one column table, I have tried with filter and yes I did just have to put the [N] .
    Am missing something ? that's rhetorical you can keep thoughts to yourself.

    Richard.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,480

    Re: How to refer to virtual table column in a meaure

    It will not work with VALUES, because that would require a reference like sumt[N] which won't work.

  7. #7
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    520

    Re: How to refer to virtual table column in a meaure

    Thanks, I can stop trying, I don't know if you saw my later post re SUMMERIZE, but that is how this started,
    I wanted to use VALUES on the virtual summerised topn table,
    so I could get a distinct concatenation,

    Sought of ;
    Please Login or Register  to view this content.
    This did not work either.

    RD

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Virtual pivot table?
    By Mr. Z in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-29-2021, 09:18 PM
  2. Is it possible to have a function refer to a Power Query in virtual memory?
    By skysurfer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2020, 02:50 PM
  3. [SOLVED] Refer to a cell in another column within a table
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-09-2014, 10:00 PM
  4. Need to populate column values from excel to virtual pivot table using VBA
    By XMan03 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2011, 04:33 PM
  5. Virtual Pivot table
    By millzerr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2011, 06:24 AM
  6. [SOLVED] Creating a virtual table in VBA Excel
    By Jean-Jérôme Doucet via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2005, 04:05 PM
  7. Creating a virtual table in VBA Excel
    By Werner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2005, 03:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1