Excel - Cube Set & Cube Ranked Member Filtering

Hi There,
I am trying to get something working in excel but for the life of me can not seem to make it work. I am trying to calculate measures on a list of top 10 countries. These countries must be filtered to international and also have additional filters applied
to them from related dimensions i.e. specific date, specific organisational unit etc. I can achieve this using a pivot table, however the top 10 list of countries need to dynamically change as the measures sums change.
I have tried to accomplish this by using the cubeset and cuberanked formulas but can not apply dimension filtering (like cube value) which will result in incorrect values and country listings.
Am I approaching this the wrong way or is it just not possible to do achieve this?
I can not use pivot tables as I need a custom formatting solution in excel.
Thanks.

Hi shmick,
According to your description, you want to filter the top 10 countries based on some measure. Right?
In this scenario, I suggest you using TOPCOUNT() in MDX instead of using CUBESET and CUBERANKEDMEMBER in Excel. Please see my sample query below:
So you can define a named set to always call the top 10 countries.
WITH SET [Top10Countries] AS
TOPCOUNT([Geography].[Country].[Country],2,[Measures].[Internet Sales Amount])
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support

Similar Messages

  • Named Sets or calclated member

    Hi friends
    Need help regarding the MDX .I do have one Mapping table M1 with measure values.
    A0   A1   A2   M1     M2
    1    2      3    100    960
    2    3      4    140    680
    1    4      7    520    660
    2    5      9    550    630
    and one dimension table d1 having 20 records.
    with columns as
    id value         mapping column
    1   Red            A0
    2   orange        A0
    3   green        A0
    4   blue        A0
    So when the Dimension table is joined with Fact/Mapping table i want my Output in cube as as :
    OutPut:
    In rows as Red  (A0)   and column M1(Measure) as 620. (Sum of 520+100)
    Logic will work as follows in Fact Map Table.
    If i go for filters(in Microsoft excel) in Mapping Table. While Selecting the A0 and filter Value as 1
    The below data is displayed :
    Red        A0   A1   A2   M1     M2
            1    2      3    100    960
            1    4      7    520    660
    A0 (1 value or Other) is basically an ID .which is logically Build with RED (Dimension ID).Same as A0(2 Value) is with Orange.
    Same way if any other filter is selected. it should work with same way(Filtering the data in Mapping table and then Sum of measures)
    Please help . I neeed to build this logic for Fact tables.
    Should i go for NAMED Sets or calculated member for the Fact logic(Filter)
            

    Hi Rakesh ,
    As I understand, you can't create a dynamic relationship between the fact table and the dimension table .
    What we can do is to use calculated members/scopes to define how each measure will be calculated, or you can create 1 generic dimension that will be the base for 3 role-playing  (like generic Date dim and creationDate dim, deleteDatedim ..) and a mapping
    column dimension, which will be used to select mapping column value, so you can use LinkMember functionality to 'jump' between the dims . 
    Relations between each role-playing dimension will be regular .
    Regards, David .

  • Set up MAC Address Filtering on WRT54G - now nothing connects

    I set up MAC address filtering on the wireless router.  Added 5 MAC addresses to the PERMITTED list, by selecting them from the available devices.   Saved the changes.  Now, none of the machines can connect to the access point.  That includes the PC I use to log in and administer the access point.  I connected the network cable directly to my PC to manage the router/access point.  Still not able to connect.  What happened?  How do I get back in and turn that nonsense off.  I know MAC Filtering is questionable wrt effectiveness, but I decide to try it.
    Solved!
    Go to Solution.

    Reset the router back to defaults. Reconfigure it from scratch.

  • How to set up junk mail filtering in mac mail

    Is there a new way to set up junk mail filtering? I have been getting an increased amount of junk mail which the filter seems to allow through. Also, when I select emails and mark them as junk, when I delete them, they "reappear" still marked as junk. Really weird. But I will have to delete them several times for them to disappear out of my IN box. Not sure if this is due to a string of them coming in at once.
    any advice out there?

    You may find these articles from Apple support  helpful.
    https://support.apple.com/kb/PH19190?locale=en_US
    https://support.apple.com/kb/PH19115?locale=en_US

  • XMLA to alter cube default member

    Hi folks,
    I have a calculation script written as Default member for time dimension as 2014. Now I need to update this as 2015 using XMLA Alter scripts. Could you please help me to derive the script.
    Existing calculation MDX:
    ALTER CUBE CURRENTCUBE
    UPDATE DIMENSION [Period],
    DEFAULT_MEMBER = [Period].[Period].[Year].&[2014];
    Need to update this to 2015 in all AS databases just through XMLA.
    Thanks in advance,
    Paddy

    Hi Paddy,
    According to your description, you want to update the default member of the time dimension into 2015. Right?
    In this scenario, you don't have to use an XMLA scripts to do the update, you can directly modify the MDX.
    ALTER CUBE CURRENTCUBE
    UPDATE DIMENSION [Period],
    DEFAULT_MEMBER = [Period].[Period].[Year].&[2015];
    Or you can modify it on GUI.
    Reference:
    Define a Default Member
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Attribute key cannot be found. Value 0 . eventhough set to unknown member

    Hi,
    I want to be able to set any null values in the fact foregin key to the dimensions unknown member.
    I have a dimension called agent , with UnknownMember = True and UnknowMemberName = No Agent. When I process my dimension, I see all my agents plus a No Agent member. (ErrorConfiguration = Default. I do not want to ignore errors ).
    In the cube dimension usage I've set null proccessing to unknown member.
    I have a rows on my fact table with NULL on the agentID and the Cube fails to process with this error (its changing NULL to 0):
    Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'dbo_FactSales', Column: 'AgentId', Value: 0.
    I was expecting that, based on my configuration of the dimension, that the NULL row would be assigned to the unknown member of the dimension.
    What am I missing?
    (I know that I could have a Unknow record on my db and deal with it on the ETL process, but I would like SSAS to handle this situation. I already read 
    http://msdn.microsoft.com/en-us/library/ms345138.aspx is telling to do on the section "Referential
    Integrity Issues in Fact Table")
    I don't know if this is related but the fact value is taken from DSV query of:
    CASE WHEN Fact_table.[AgentId] IS NULL THEN NULL ELSE CAST(Fact_table.[AgentId] AS INT) END AS [AgentId]
    Your help appreciated
    Namnami

    Hi Namnami,
    Please refer to the following article:
    Defining the Unknown Member and Null Processing Properties:
    http://technet.microsoft.com/en-us/library/ms170707(v=sql.90).aspx
    Here is a related article about this error message for your reference:
    SSAS Quick Reference: Attribute Key Cannot Be Found:
    http://toddmcdermid.blogspot.com/2009/01/ssas-quick-reference-attribute-key.html#!/2009/01/ssas-quick-reference-attribute-key.html
    Regards,
    Elvis Long
    TechNet Community Support
    The worst part about these MSDN forums is that the Moderators seem to just want to mark an answer correct on every single question whether it's right or not, and if there is no answer they just mark their own answers as correct, even when it's as unhelpful
    as "Here's the same link to the article you've already read".

  • Removing Members from Excel Add-in (or Smartview) Member Selection Options

    The users of my system have write access to some scenarios, read access to others, and no access to the rest. I would like the Scenarios for which the users have no access to not show up in the member selection options in Excel Add-in (similar to how they will not show up in Forms). Our security settings obviously prevent them from seeing the data itself, but we don't want them to see certain Scenarios at all (even the member names). We've dealt with this issue in Financial Reporting by manually specifying what the POV options are, but we can't do the same with Excel Add-in or Smartview.
    Is this possible, or are these Add-ins just not smart enough to interpret the security?

    I sugget you look at metaread filters. they would prevent users from seeing members they don't have access to (one exception is they might see parents they don't have access to if they are required to navigate to the hierarchy they do have access to

  • Not able to access the result set from one member function to another

    Im new to jdbc
    I have declared a connection object , a result set object and statement object in one member function and i am not able to access these in another member function. But both are in the same class
    Kindly help
    Thanks
    Shasi

    Kindly refrain from double-posting:
    http://forum.java.sun.com/thread.jspa?threadID=700659&tstart=0
    - Saish

  • Export to excel character set problem

    Hello,
    I'm having troubles exporting a query to excel in ApEx,
    signs like é ü are displayed incorrect. I have been searching for a while now but i can't find out what is wrong. The DAD of the DB is UTF8 and ApEx is also UTF8. Could anyone give me hint what could be wrong?
    Here is an example:
    WÜRTH is displayed WÃœRTH
    When I trow in a convert from UTF8 to WE8ISO8859P15
    WÜRTH is displayed as W�TH
    FROM 'US7ASCII', 'WE8ISO8859P1'
    WÜRTH is displayed as W??RTH
    I use the following procedure:
    PROCEDURE p_export_lots(p_public_sale_id IN public_sales.public_sale_id%TYPE,
    p_language_cd IN item_descriptions.language_cd%TYPE)
    IS
    CURSOR c_excel
    IS
    Select itm.item_id, to_char(long_description) long_description
    from items itm, item_descriptions des
    where itm.item_id = des.item_id
    and language_cd = p_language_cd
    and dossier_id In ( SELECT dossier_id
    FROM dossiers
    WHERE public_sale_id = p_public_sale_id)
    ORDER BY to_number(lotnr_from);
    v_trans VARCHAR2(400);
    BEGIN
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="export.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    FOR rec_excel IN c_excel LOOP
    v_trans := rec_excel.long_description;
    htp.p(' '||';'||rec_excel.item_id||';'||v_trans||';'); -- a new line in excel
    END LOOP;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true;
    END p_export_lots;
    Thanks in advance

    hmmm the DAD should be "AL32UTF8" not "UTF8" ...
    as long as you use the htp.p procedure all your output is being converted to
    AL32UTF8 (as the DAD setting states).
    Why don't you use the APEX-provided export-to-excel function. IKf you navigate
    to the application settings and there to the globaization settings you can enable
    the "automatic CSV encoding" - Setting this to "yes" should do the trick for you ...

  • MAXL Script to update Member Filters

    Hoping someone can point me in the right direction.<BR><BR>I've created a MAXL script which changes the lines on a Member Filter, effectively changing it from a READ to a WRITE. The only problem is after the MAXL script has run the User loses the Filter assigned to them.<BR><BR>Is there any way of getting the Filter to stay with the user.<BR><BR>Many Thanks<BR><BR>Mark

    Rosi wrote:
    Hello -
    Yes. Here is an example of the maxl script -
    login 'Hypadmin' '#########' on myessbaseserver;
    spool on to 'mymaxl.log';
    /* Setting the substitution variable */
    alter database appname.databasename set variable 'CurMonth' 'Aug';
    display variable all;
    spool off;
    Logout;
    Exit;
    You can call this maxl from a batch file scheduled from windows scheduled task.
    RegardsThanks very much for your help!

  • Export to excel-Width setting

    Hi,
    I am trying to export a Discoverer viewer report to Excel through export option.
    In Excel,I need to manually set the width of each column.Is there any woutomatic way of setting the width automatically in the process of exporting.
    Thanks
    Sridhar

    I haven't done a lot of exporting to Excel, but I remember a posting a while ago that mentioned Excel ignores most (if not all) of the formatting from Disco. This would also include column widths.
    Then again, I could be remembering wrong...

  • Excel 2010 - Set default zoom setting

    Hi
    All my Excel worksheets seem to be set at 60% magnification, I want to change the default to 80&, is this possible?
    Thanks
    Viv
    Viv Haig

    Hi,
    Maybe try creating an Excel addin(.xlam) with the following code:
    Public RunWhen As Double
    Private Sub Workbook_Open()
    MsgBox "The Zoom will be changed to 80%."
    cRunIntervalSeconds = 5 ' Update value every five seconds
    cRunWhat = "ThisWorkbook.TheSub" ' the name of the procedure to run
    RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
    Application.OnTime EarliestTime:=RunWhen, Procedure:=cRunWhat, _
    Schedule:=True
    End Sub
    Sub TheSub()
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
    ws.Select
    ActiveWindow.Zoom = 80
    Next ws
    MsgBox "Zoom has been changed."
    End Sub
    Paste the code into Thisworkbook section in VBE:
    Save the workbook as .xlam file and then add this Excel addin file by:
    File > Add-Ins > Go... > Browse... > locate the .xlam file and then double click on it to add.
    Enable the macro setting in Excel.
    Next time after you open an existing workbook the code will be run to change the Zoom value to 80%.
    Best regards,
    Rex Zhang
    TechNet Community Support
    A new Office has arrived, try it now.
    A beautiful Start. It begins here. Windows 8 and Windows RT.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Setting mutliple variables and filters in operators

    Hi all,
    Playing around with the new liquid markup and loving it. Have two questions though that I couldn't find answers to in the docs.
    1) Is it possible to set multiple variables in one line, or some better way than what I'm currently doing? At present I'm adding a new line per variable, so
    {% assign var1 = 1 %}
    {% assign var2 = 2 %}
    Just thought there might be an easier way, like perhaps
         assign var1 = 1,
         assign var2 = 2
    2) Is it possible to use filters in operators? If so I may be doing it wrong;
    {% if numericVar1 | modulo: numericVar2 == 0 %} **do whatever **{% endif %}
    My first thought is it is evaluating the second bit and using that for the modulo. So, if numericVar2 was "0", it would be trying to do "numericVar1 | modulo: (numericVar2 == 0)", rather than "(numericVar1 | modulo: numericVar2) == 0".
    I also thought perhaps it might be related to the bug linked below, but I've had no issues in general using variables alone with filters, only when in operators.
    Bug: Liquid math filters don't work with module data
    Edited because I hit post too soon.

    Hi there,
    1. No, its not a high end language, what your doing is fine there.
    2. Filters in operators work, but not all cases.

  • How to set the default value filters for navigational block in WAD.

    Hi Experts.
    as per the customer requirement . they have bex report we need to convert in to web. but in the bex for one field  they using default filters but am not aware in the WEB reports.
    Please anyone suggest me how to give the default filter values in the navigation block in WAD.
    Thanks
    Ashok

    Hi,
    In the Properties of the Navigation Block pane. Goto WebItem-- Goto List of Characteristics, in that click list it will pop up new window, there enter the required objects wants to be in the default filter area.
    Hope it hleps you.
    Veerendra.

  • Dimension default member has a strange impact both in dimension browser and excel filters

    Hello All,
    I have a scenario where I need to set a default member in a dimension attribute.
    The problem is that when I am browsing the dimension attribute (that is a parent-child) in Visual Studio I cannot see all the values only the ones that are filtered by the default member. In addition the same happens when I create
    a pivot table in excel with filter values, even if I change the attribute that has a default value.
    My goal is to list (by default) all the distinct values in excel filter selectors.
    Is this a limitation? Is there any way to overcome this? Is this a problem related with parent-child attributes?
    Best Regards,
    André Cunha

    Hello All, <o:p></o:p>
    Update on the situation.<o:p></o:p>
    We normalized the dimension and we achieved a
    satisfactory solution maintaining the default values and aggregation
    settings in the new dimensions and the parent-child attribute now shows
    all possible values.<o:p></o:p>
    I believe this is a by design that excel does not
    reflect the applied filters in the pivot tables depending of the attribute
    filters selected.<o:p></o:p>
    Any thoughts, <o:p></o:p>
    Regards, <o:p></o:p>
    André<o:p></o:p>

Maybe you are looking for