+ Reply to Thread
Results 1 to 3 of 3

CUBESET function for non-consecutive members

Hybrid View

  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    Brossard, Québec, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    CUBESET function for non-consecutive members

    My first post !

    Hello everyone.

    I have seen many, many examples around the web about the cubeset function but none of them mention how one would go about selecting anything else than [Dimension].[Member].children.

    Through trial an error, I managed to get only a few members of a dimension but these seem to need to be consecutive members in the cube dimension. I acheived this using this function:
    =CUBESET("Local Stream Cube","[Transaction Type].[By Transaction Category].[All].[Capital Item].[TX]:[Transaction Type].[By Transaction Category].[All].[Capital Item].[WTAX]","Tax")
    This returns 3 members because between the member [TX] and the member [WTAX], there is also a 3 member.

    Now let's say I wanted to ONLY return [TX] and [WTAX] in that cubeset. What would be the set expression to use ?

    I'm very suprised I haven't found this anywhere on the net.

    Thanks !

  2. #2
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: CUBESET function for non-consecutive members

    =CUBESET("Local Stream Cube","{[Transaction Type].[By Transaction Category].[All].[Capital Item].[TX],[Transaction Type].[By Transaction Category].[All].[Capital Item].[WTAX]}","Tax")
    A colon creates a range between the first and last values. Use the squigly brackets to denote a set.
    Last edited by shg; 05-06-2010 at 08:56 PM. Reason: deleted spurious quote

  3. #3
    Registered User
    Join Date
    05-06-2010
    Location
    Brossard, Québec, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: CUBESET function for non-consecutive members

    Ah the squiglies!!! How come I hadn't thought of them...

    Thank you very much sir!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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