Filter to show a range of TOP members of a dimension

Hi there,
I am trying to create a TOP Filter that will display the following Values:
TOP 25, TOP 50 and TOP 100
I have a Location Dimension who has a attribute called Rank. This Rank is based on a column of the Location table which has a fixed value per location that was assigned manually in the database.
So when I select the TOP 25 member of the TOP Filter, I will be showing the top 25 locations based on Rank column.
What I did was sorting the Locations in the dimension using the Rank attribute and then building dynamics sets using TOPCOUNT mdx expression. The problem is the performance is very bad. 
Could anyone advice me on how would be the best way to achieve the above with a good performance?
Thanks and best regards,
Joss

Hi Joss,
your issue became interest for me and i have done some tests. i have created dimension table and filled by 5 000 000 elements having the different ranks, created dimension that contains three attributes: ID, Rank and Name. Then i defined calculation in cube
script:
CREATE MEMBER CURRENTCUBE.[Measures].[Rank_1]
AS [Product].[Rank].member_value, VISIBLE = 1;
CREATE DYNAMIC SET [Rank_25_1]
AS TOPCOUNT([Product].[Product].[Product],25,[Measures].[Rank_1]);
and run query 
WITH MEMBER [NewMember] as NULL
SELECT
[Measures].[NewMember] on 0 ,[Rank_25_1] on 1
FROM [Cube]
The command duration is about 22 sec. Then created real Measure [Rank_2] based on dimension attribute and add new dynamic set:
CREATE DYNAMIC SET [Rank_25_2]
AS TOPCOUNT([Product].[Product].[Product],25,[Measures].[Rank_2]);
the below query was running about 8 sec.
WITH MEMBER [NewMember] as NULL
SELECT
[Measures].[NewMember] on 0 ,[Rank_25_2] on 1
FROM [Cube]
So, performance is not so bad. I suppose you used in query some complex calculated members or used a lot of dimensions in axises.
Best regards.

Similar Messages

  • Top 10 lowest level dimension members based on measure

    Hi,
    I'm trying to create a condition with JDeveloper to show the top 10 dimension members based on a measure for the lowest level of the hierarchy, but doesn't work.
    All other conditions are working well, including top 10 dimension members in other levels of the hierarchy (not in the lowest).
    Any suggestion??
    I think the dimension is defined ok, all other conditions are working well and the lowest level could be shown with other conditions and drills.
    Thanks in advanced....

    Hi,
    First, my BI Beans version is 9.0.3.5 and my database version is 9.2.0.2.1
    I will try to clarify my problem. I am trying to create a graph to show the top10 members of a dimension based on my measure. When I define this condition
    to show the top 10 members of a middle level (not de low level), it works fine, I mean, it shows the top 10 members of that level. But, when I define the condition
    to show the top 10 members of the low level, it displays me that there is no data to display (The data has an insufficient number of columns and rows).
    I have been testing this case, and I have seen that if I change the low level column (number type) of the dimension to a varchar type column, it works. This low level is
    the primary key of the dimension table, and it's referenced by a foreign key in the fact table.
    Which could be the problem?? Is it not possible to define a level of a dimension with a number column??
    I have a demo sample to see this problem (two simple dimensionS with three levels and a fact table). It's a bit large to post it complete, so I post here an extract of it.
    -- Dimension and fact tables
    CREATE TABLE PR_DIM_A (DIM_A_KEY NUMBER,
                   LOW_A_LEVEL_NAME VARCHAR2(50),
                   ALL_A_LEVEL_ID VARCHAR2(50), ALL_A_LEVEL_NAME VARCHAR2(50),
                   GROUP_A_LEVEL_ID VARCHAR2(50), GROUP_A_LEVEL_NAME VARCHAR2(50),
                   CONSTRAINT PK_DIM_A PRIMARY KEY (DIM_A_KEY));
    CREATE TABLE PR_DIM_B (DIM_B_KEY NUMBER,
                   LOW_B_LEVEL_NAME VARCHAR2(50),
                   ALL_B_LEVEL_ID VARCHAR2(50), ALL_B_LEVEL_NAME VARCHAR2(50),
                   GROUP_B_LEVEL_ID VARCHAR2(50), GROUP_B_LEVEL_NAME VARCHAR2(50),
                   CONSTRAINT PK_DIM_B PRIMARY KEY (DIM_B_KEY));
    CREATE TABLE PR_FACTS (FACT_KEY NUMBER, DIM_A_KEY NUMBER, DIM_B_KEY NUMBER,
                   MEASURE_1 NUMBER, MEASURE_2 NUMBER,
                   CONSTRAINT PK_FACTS PRIMARY KEY (FACT_KEY));
    ALTER TABLE PR_FACTS ADD CONSTRAINT FK_DIM_A FOREIGN KEY (DIM_A_KEY)
                   REFERENCES PR_DIM_A (DIM_A_KEY);
    ALTER TABLE PR_FACTS ADD CONSTRAINT FK_DIM_B FOREIGN KEY (DIM_B_KEY)
                   REFERENCES PR_DIM_B (DIM_B_KEY);
    -- Data inserts in the dimensions
    INSERT INTO PR_DIM_A VALUES (1,'ALL','ALL_NAMEa','GROUP1a','GROUP1_NAMEa','LOW1a','LOW_NAME1a');
    INSERT INTO PR_DIM_A VALUES (2,'ALL','ALL_NAMEa','GROUP1a','GROUP1_NAMEa','LOW2a','LOW_NAME2a');
    -- ......... dimension B is the same kind of data.
    -- OLAP dimension A creation script
    cwm2_olap_dimension.create_dimension('BI02', 'PR_A_DIM', 'DimA Diaplay name', 'DimA Plural name', 'DimA Short Description','DimA Description');
    cwm2_olap_dimension_attribute.create_dimension_attribute('BI02', 'PR_A_DIM', 'Short Description', 'Short Descriptions', 'Short Desc', 'Description', TRUE);
    cwm2_olap_hierarchy.create_hierarchy('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'HIER_DIM_A Display name', 'HIER_DIM_A ShortDesc', 'HIER_DIM_A Desc','Unsolved Level-Based');
    cwm2_olap_dimension.set_default_display_hierarchy( 'BI02', 'PR_A_DIM', 'HIER_DIM_A' );
    cwm2_olap_level.create_level('BI02', 'PR_A_DIM', 'ALL_LEVEL_A', 'ALL_LEVEL_A DisplayName', 'ALL_LEVEL_A PluralName', 'ALL_LEVEL_A ShortDesc', 'ALL_LEVEL_A Desc');
    cwm2_olap_level.create_level('BI02', 'PR_A_DIM', 'GROUP_LEVEL_A', 'GROUP_LEVEL_A DisplayName', 'GROUP_LEVEL_A PluralName', 'GROUP_LEVEL_A ShortDesc', 'GROUP_LEVEL_A Desc' );
    cwm2_olap_level.create_level('BI02', 'PR_A_DIM', 'LOW_LEVEL_A', 'LOW_LEVEL_A DisplayName', 'LOW_LEVEL_A PluralName', 'LOW_LEVEL_A ShortDesc', 'LOW_LEVEL_A Desc' );
    cwm2_olap_level_attribute.create_level_attribute('BI02', 'PR_A_DIM', 'Short Description', 'ALL_LEVEL_A', 'Short Description', 'All_LEVEL_A DisplayName', 'ALL_LEVEL_A ShortDesc', 'ALL_LABEL Desc', TRUE );
    cwm2_olap_level_attribute.create_level_attribute('BI02', 'PR_A_DIM', 'Short Description', 'GROUP_LEVEL_A', 'Short Description', 'GROUP_LEVEL_A DisplayName', 'GROUP_LEVEL_A ShortDesc', 'GROUP_LEVEL_A Desc', TRUE );
    cwm2_olap_level_attribute.create_level_attribute('BI02', 'PR_A_DIM', 'Short Description', 'LOW_LEVEL_A', 'Short Description', 'LOW_LEVEL_A DisplayName', 'LOW_LEVEL_A ShortDesc', 'LOW_LEVEL_A Desc', TRUE );
    cwm2_olap_level.add_level_to_hierarchy('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'LOW_LEVEL_A', 'GROUP_LEVEL_A' );
    cwm2_olap_level.add_level_to_hierarchy('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'GROUP_LEVEL_A', 'ALL_LEVEL_A' );
    cwm2_olap_level.add_level_to_hierarchy('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'ALL_LEVEL_A' );
    cwm2_olap_table_map.map_dimtbl_hierlevel('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'ALL_LEVEL_A', 'BI02', dim_table, 'ALL_A_LEVEL_ID' );
    cwm2_olap_table_map.map_dimtbl_hierlevel('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'GROUP_LEVEL_A', 'BI02', dim_table, 'GROUP_A_LEVEL_ID' );
    cwm2_olap_table_map.map_dimtbl_hierlevel('BI02', 'PR_A_DIM', 'HIER_DIM_A', 'LOW_LEVEL_A', 'BI02', dim_table, 'DIM_A_KEY' );
    cwm2_olap_table_map.map_dimtbl_hierlevelattr('BI02', 'PR_A_DIM', 'Short Description', 'HIER_DIM_A', 'ALL_LEVEL_A', 'Short Description', 'BI02', dim_table, 'ALL_A_LEVEL_NAME' );
    cwm2_olap_table_map.map_dimtbl_hierlevelattr('BI02', 'PR_A_DIM', 'Short Description', 'HIER_DIM_A', 'GROUP_LEVEL_A', 'Short Description', 'BI02', dim_table, 'GROUP_A_LEVEL_NAME' );
    cwm2_olap_table_map.map_dimtbl_hierlevelattr('BI02', 'PR_A_DIM', 'Short Description', 'HIER_DIM_A', 'LOW_LEVEL_A', 'Short Description', 'BI02', dim_table, 'LOW_A_LEVEL_NAME' );
    -- OLAP dimension B creation script is similar than A.
    -- OLAP CUBE creation script
    cwm2_olap_cube.create_cube( 'BI02', 'PR_CUBE', 'Sample Cube', 'Sample Cube', 'Sample Cube' );
    cwm2_olap_measure.create_measure('BI02', 'PR_CUBE', 'MEAS1', 'MES1 DisplayName', 'MES1 ShortDesc', 'MES1 Desc');
    cwm2_olap_measure.create_measure('BI02', 'PR_CUBE', 'MEAS2', 'MES2 DisplayName', 'MES2 ShortDesc', 'MES2 Desc');
    cwm2_olap_cube.add_dimension_to_cube( 'BI02', 'PR_CUBE', 'BI02', 'PR_A_DIM' );
    cwm2_olap_cube.add_dimension_to_cube( 'BI02', 'PR_CUBE', 'BI02', 'PR_B_DIM' );
    dimkeymap :=
         'DIM:'
    || 'BI02'
    || '.PR_A_DIM/HIER:HIER_DIM_A/LVL:LOW_LEVEL_A/COL:DIM_A_KEY;DIM:'
    || 'BI02'
    || '.PR_B_DIM/HIER:HIER_DIM_B/LVL:LOW_LEVEL_B/COL:DIM_B_KEY;';
    cwm2_olap_table_map.map_facttbl_levelkey( 'BI02', 'PR_CUBE', 'BI02', fact_t, /*'ET'*/ 'LOWESTLEVEL', dimkeymap );
    cwm2_olap_table_map.map_facttbl_measure( 'BI02', 'PR_CUBE', 'MEAS1', 'BI02', fact_t, 'MEASURE_1', dimkeymap );
    cwm2_olap_table_map.map_facttbl_measure( 'BI02', 'PR_CUBE', 'MEAS2', 'BI02', fact_t, 'MEASURE_2', dimkeymap );
    Thanks a lot for your help....

  • Camera and ipod shuffle do not show up on desk top when connected

    Kodak camera and ipod shuffle do not show up on desk top when connected.  Trying to download pictures and adding my music to ipod shuffle, Anyone have any suggestions.

    Have you plugged in another USB device to ensure that the USB ports are working?
    Suggest you buy (about $10 - $20) a USB memory card reader. Just plug your camera's memory card into it & copy the pic files to your Mac. Quicker & easier than interfacing the camera for pic transfer.
     Cheers, Tom

  • My MeasureIt icon does not show anywhere, on the top or bottom of the page, after I upgraded Firefox to 3.6.17. How can I get it to show?

    I installed:
    Delicious Bookmarks 2.1.106 true {2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}
    Google Toolbar for Firefox 7.1.20110316M true {3112ca9c-de6d-4884-a869-9855de68056c}
    StumbleUpon 3.91 true {AE93811A-5C9A-4d34-8462-F7B864FC4696}
    MeasureIt 0.4.8 true {75CEEE46-9B64-46f8-94BF-54012DE155F0}
    RankChecker 1.8.5 true [email protected]
    Seo Toolbar 1.1.10 true [email protected]
    SEO For Firefox 3.5.1 true [email protected]
    Everything showed up at the top of the window, until I upgraded to Firefox 3.6.17. Now, the Google toolbar is still at the top, as is the StumbleUpon icon. The SEOBook letters are there, but the toolbar has changed to vertical dotted lines.
    Everything else appears at the bottom right of the window now, except MeasureIt, which doesn't appear anywhere. I really need MeasureIt the most, right now.
    When I look at Tools, Add-ons, Extensions, in the Firefox menu, the MeasureIt section only gives me the options to disable or uninstall. Is that what I need to do, then re-install?
    I'm not a techie, so please keep your explanation simple. I hope this can be fixed easily. Thank you!

    It works in FF4.0.1! "Right-click on a toolbar then choose "Customize". Look for the ruler icon in the popup that appears and drag it where ever you'd like it to appear. I put mine back at the top of my dev tool bar. Handy Little Tool!

  • I am using the iphone 4s in india now. i bought it from canada (factory unlocked). But here in india. when i put my vodafone sim in 4s. It only shows th name of the carrier but dont show the range towers. i tried airtel and reliance carriers also.

    I am using the iphone 4s in india now. i bought it from canada (factory unlocked). But here in india. when i put my vodafone sim in 4s. It only shows th name of the carrier but dont show the range towers. i tried airtel and reliance carriers also.but the result was same. now what can i do??

    BobbyLe wrote:
    I could not follow the AT&T instruction because my network (Optus) doesn't have anything as username or password or dial-up phone number. The only parameter I needed to key into Mobilink (the software I am running on the S10 is the APN which is:    connectme    that's it no number, no PIN, no password, nothing else.
    How do I tell Windows to do that?
    *99***1#  <--- the number to call
    at+cgdcont=1,"ip","connectme"  <----- the  string to put in the advanced field of the modem

  • I redeemed a gift card, the amount shows up in the top right corner but when I try to purchase music it goes to the account that I have loaded. How do I use the gift card?

    I redeemed a gift card, the amount shows up in the top right corner of my account but when I try to purchase music it goes to the account that I have loaded previously. How do I use the gift card?

    If the amount of the purchase is close to $21.07, then you need to take into account taxes may be added.
    If you go beyond the credit from a gift card the balance will be billed to your credit card account.

  • How to show network status in top toolbar?

    how to show network status in top toolbar? Network preferences is there, but network status has disappeared on last reset of Airport Express, but may not be connected. Thanks in advance for practical help

    Interestingly, in my experience, using the method described above of unchecking the "Show Connected Servers" box in the Finder Preferences makes no difference in what I can put in the sidebar. I was able to move a sub-folder of a shared disk to the Favorites section of the Finder Sidebar, but nothing else. (i.e. I could not add the shard disk itself to the sidebar – either to the devices, favorites, or any other section, and I could only add a subfolder of the shared disk to the favorites section – not to the devices section or any other section). This was the same whether I had "Show Connected Servers" checked or not.
    I'm running OS X Mavericks, and the setup I have is with a previous generation Time Capsule (i.e. the short, square kind that you could buy before the most recent taller variety came out last year), with a LaCie 3 TB USB 3.0 external drive plugged into the USB port of the Time Capsule. I'm then accessing this network drive over WiFi. The differences in what I'm seeing may be due to some change they made in the way Mavericks handles these setups.
    I could also just be misunderstanding what you're saying, but I thought I'd add this in case anyone else gets similar results so that they'd know they're not alone. Let me know if I'm missing something here.

  • Hi, I upgraded my iphone 4 to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tels that this device is not registered as part of the iphone developer programme. How could I fix this problem? Please..?

    Hi, I upgraded my iphone 4 (4.3.3) to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tells that "this device is not registered as part of the iphone developer programme." How could I fix this problem? Please help me...,

    I had a similar occurrence with my just activated iPhone 4.
    I had been using the phone for three days when an odd occurrence with voice mail caused me to call tech support. After some discussion they decided to push the activation to my phone (even though I had been using it for three days). When I went to power it back up again I repeatedly got the "no service" notification. I got tech support on a land line and we tried hard reboots and so on. No joy. They told me to take it in to the point of sale and either the SIM card or the phone needed (or both) needed replacing.
    I tried one last hard reboot after dinner and the phone came up with service, but I took it in to the point of sale in the morning and they swapped the SIM card out and I went to a Genius Bar appointment to get the phone checked out. It is supposedly OK, but I am still having some problems when syncing it so I will have to visit the Genius Bar again tomorrow about that. At least I have not experienced the "no service" problem in the roughly 24 hours since the SIM card was replaced. (Fingers crossed)

  • Itunes app no longer showing genres or the top charts/genius bar in the top bar ... it only displays a faint music in the centre with just the search box..why? i need them back:-(

    itunes app no longer showing genres or the top charts/genius bar in the top bar ... it only displays a faint music in the centre with just the search box..why? i need them back:-(

    The iTunes Store listing of your podcast is simply reflecting the contents of your podcast feed. Make sure all of the content you want displayed in the iTunes Store is still contained within your feed.
    Are you able to supply your feed for reference?

  • Hi, I have a mac book pro running mavericks and recently tried to connect to a 3rd ten apple tv but the airplay icon is not showing up in the top bar. I then tried my girlfriends laptop running mountain lion and it showed up straight away. Any suggestions

    Hi, I have a mac book pro running mavericks and recently tried to connect to a 3rd gen apple tv but the airplay icon is not showing up in the top bar. I then tried my girlfriends laptop running mountain lion and it showed up straight away. Any suggestions?

    How old is the MacBook Pro?  AirPlay is only supported on 2011 and newer models, due to the requirements it has in hardware for graphics acceleration.

  • Photoshop CS5 already in 32-bit mode; Lighting Effects filter not showing in the Filter Menu

    Photoshop CS5 already in 32-bit mode; Lighting Effects filter not showing in the FIlter Menu. Please help!?

    Noel Carboni wrote:
    Doesn't a Mac have a definitive way to check to see whether an application is running in 64 bit mode or 32?  Some kind of process manager or something?  22 posts have gone by and the original poster doesn't yet seem convinced that it is actually running in 64 bit mode.
    I don't know why there has been doubt since post #12 where I explained that Ps must be running in 64-bit mode when more than 2100 MB RAM is reported in Preferences.
    Anyway, here's a screenshot of Activity Monitor showing CS6 in 64-bit mode and CS5.1 in 32-bit mode.

  • Ipad 3.3 model 1430 does not show no sim on top left corner

    Ipad not showing no sim on top left corner even when sim is installed

    I Have exactly the same issue. Have you found some fix to this problem? i think ipad had a wrong firmware. When I tried to install the correct software. itune gave error. can we use some software other than iTunes to change the software?

  • HT201304 How to prevent the poster/icon of explicit movies from showing up in the Top Hits list

    Although i have setup up all the parental controls to prevent adult/explicit content in the movies (Apple TV), still the posters of adult movies often show up in the Top hit List, is there a way to prevent the poster from showing up in the list too ?

    Use VMware Fusion? But seriously, Fusion does what you want. It just puts a mini VM control menu at the top when running full screen (and that's configurable, too), so the main menu bar doesn't appear at all. Which means that it's up to Parallels to handle this. Are you running Parallels 7, which is designed for Lion? If you are and Parallels still doesn't offer something similar, you need to contact Parallels.

  • I cannot sign in, it shows sign in at top left corner only but area does not appear where I normally put my password in.

    1. I go to Firefox
    2. I go to hotmail
    3. I sign in BUT
    4. Firefox will not let me sign in shows '''sign in''' at top left hand corner only& will not go any futher therefore section where I normally sign in & put password does not appear
    5. Tried all day/night

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • My wifi bar isnt showing up at the top and i cant connect to internet but its not my router

    my wifi bar isnt showing up at the top and i cant connect to internet but its not my router? HELP HOW DO i get wifi back

    I recommend that you start with taking a look at the Apple Support article to help you troubleshoot what the issue may be.
    If that still doesn't resolve the issue, we will need to get the AirPort icon back on the OS X menu bar to continue. Please try the following:
    System Preferences > Network > Wi-Fi > Show Wi-Fi status in menu bar (checked)

Maybe you are looking for