+ Reply to Thread
Results 1 to 2 of 2

CUBESET with multiple dimensions

Hybrid View

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2010
    Posts
    6

    CUBESET with multiple dimensions

    Hey folks!

    I'm an intermediate excel user who's very new to OLAP cubes. I'm having a bit of trouble figuring out how the CUBESET function works and was hoping you beautiful people could give me a hand.

    The cube I'm working with has dimensions for Items ([Item].[Item].&[X], different products we sell), Stores ([Store].[Location Code].&[X], locations they're sold at) and Divisions ([Division].[Division ID].&[X], type of product). What I'm trying to do is create a list of Top 30 Items (by [Measures].[Sales]) of a certain Division for each Store. Ideally, I would also like to exclude certain Items from the results entirely.

    =CUBESET("Cube"; "[Item].[Item].children"; "Top Products"; 2; "[Measures].[Sales]")
    =CUBERANKEDMEMBER("Cube"; $B$90; ROW(A1)) // B90 contains the CUBESET, ROW(A1) allows me to autofill the rank.
    The formulas above give me a list of Items (which I can use to retrieve sales data with CUBEVALUE) but doesn't consider Division or Store. Any tips would be greatly appreciated

    Regards,
    notski

  2. #2
    Registered User
    Join Date
    11-23-2011
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: CUBESET with multiple dimensions

    It works! Here's the solution:

    =CUBESET("Cube"; C49; "Top Products")
    C49 contains the set_expression, which contains TopCount and Except functions.

    TOPCOUNT(([Store].[Store].[XX],[Date].[Month].&[XX],[Item].[Division].&[XX],EXCEPT([Item].[Item].CHILDREN,{[Item].[Item].&[XX], [Item].[Item].&[XX]})),30,[Measures].[Sales])
    I then use a CUBERANKEDMEMBER formula to retreive the list of items. One strange thing to note is that despite using a European version of Excel where semi-colons are used as formula separators, I had to use commas in the TopCount function.

    Hope this helps anyone else in need!

    Regards,
    notski

+ 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. Cubeset not able to display results for multiple dates
    By DanGres in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2016, 01:41 PM
  2. [SOLVED] Multiple Sub using Source dimensions
    By ELeGault in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2015, 09:23 PM
  3. How to make excel diagrams in multiple dimensions?
    By Vinhp in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-14-2014, 11:42 AM
  4. Multiple exclusions from a cubeset
    By samdthompson in forum Excel General
    Replies: 2
    Last Post: 11-21-2013, 05:54 PM
  5. [SOLVED] Aligning Axes of Multiple Charts and Rendering All of Them the Same Dimensions
    By snl330 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-07-2013, 08:25 PM
  6. Decimals to fractions, multiple dimensions in one field
    By seanne in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-29-2013, 04:36 PM
  7. =CUBESET() formula. List all Dimensions in a Cube
    By olasa in forum Excel General
    Replies: 6
    Last Post: 05-02-2011, 02:58 PM

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