MDX Function

<p>I am just curious, is there a function in MDX similar to the@MATCH function in BSO? For instance, IF (@ISMBR (@MATCH("Time Periods", "FEB_*")))#Missing; ENDIF. Thanks!</p>

Hi Butmah ,
I think you should use an aggregation function with the set and the tuple ... adding an AdventureWorks snippet :
select [Measures].[Order Count] on 0,
Filter([Product].[Category].children,
SUM({[Date].[Fiscal].[Fiscal Year].&[2011],[Date].[Fiscal].[Fiscal Year].&[2009]}
,([Measures].[Order Count],[Geography].[Geography].[Country].&[United States])
>=5) on 1 
from [Adventure Works]
Regards, David .

Similar Messages

  • How to format an account to show date format with MDX function @FORMATDATE

    Hello,
    I am working with an ASO cube where all accounts are set as numeric type. We have some accounts which hold date information for eg Date1 member which is a stored member will have data as 20120601 for June 1st 2012. In financial reports, i need to show this data as 06/01/2012 and using as essbase connection in FR, i cannot do this.
    While i was looking for a solution, i came across the MDX function called
    @FORMATDATE
    format_string_expression = MdxFormat ( string_value_expression )
    I was hoping that if i add a member say Date2 and make it dynamic and point it to Date1 and have this MDX format command to make the numeric data 20120601 show up as 06/01/2012.
    Can this work and if yes, what would be the MDX formula in this case?
    Any help in this regard will be a great help...the other alternative i have is to export this date data out into an oracle table, transform that data into to_date and after enabling the type measures in the outline, load it back in...i was hoping to avoid this extra route if this can be done with the formatting via MDX withing the essbase app.
    Thanks...

    For all good order, here is the log from the Disk Utility:
    2012-12-07 21:18:03 +0100: Disk Utility started.
    2012-12-07 21:21:46 +0100: Preparing to partition disk: “WDC WD30 EZRX-00DC0B0 Media”
    2012-12-07 21:21:46 +0100:     Partition Scheme: GUID Partition Table
    2012-12-07 21:21:46 +0100:     1 partition will be created
    2012-12-07 21:21:46 +0100:
    2012-12-07 21:21:46 +0100:     Partition 1
    2012-12-07 21:21:46 +0100:         Name        : “Gardermoen”
    2012-12-07 21:21:46 +0100:         Size        : 3 TB
    2012-12-07 21:21:46 +0100:         File system    : Mac OS Extended (Journaled)
    2012-12-07 21:21:46 +0100:
    2012-12-07 21:21:46 +0100: Unmounting disk
    2012-12-07 21:27:59 +0100: Partition failed for disk WDC WD30 EZRX-00DC0B0 Media Wiping volume data to prevent future accidental probing failed.
    B*gger.  :-(

  • Using PeriodToDate MDX function in an ASO cube (Dynamic Time Series)

    Hyperion Essbase 7.1.2
    Since ASO doesn't support Dynamic Time Series (DTS), I am trying to use the "PeriodToDate" MDX function to get MTD and YTD totals. Below is my Time dimension:
    Time (Time - Stored)
    ...I---> 2007
    ......l---> Q1-2007
    .........l---> Jan-2007
    ............l---> 2007-01-01
    ............l---> 2007-01-02
    ............l---> 2007-01-03
    .........l---> Feb-2007
    .........l---> Mar-2007
    ......l---> Q2-2007
    ......l---> Q3-2007
    ......l---> Q4-2007
    Syntax:
    PeriodsToDate ( [layer [, member ]] )
    I tried many different ways to get the right syntax but it didn't work when I set the formula on member "2007" for YTD totals or on months to get MTD. Any help would be appreciated.
    Message was edited by:
    user597443

    ASO does not have Dynamic Time Series at all (unless something just recently changed)
    Period to date functionality has to be managed via MDX formulas and/or alternate roll ups in your time dimension.
    Time Balancing does have to be a stored hierarchy, which is what you generally want anyway. The issue you have with Time balancing is that some times if you have an alternate roll up in your time dimension, it can cause problems with Time balancing.
    If you want to use Time balancing, I would sugest a single stored time heriarchy and use an anakytic view dimension for the period to date functionality.
    You can see a post I have on my blog that talks about this: garycris.blogspot.com
    One other thing to mention. If you wan to use built in time balance functionality, you must tag a dimension as Account Type and it will have to be a dynamic dimension.

  • MDX Function Descendants

    Hey,
    I'm trying to use a mdx function on the business model using Evaluate_AGGR.
    Any idea why this is not working?
    EVALUATE_AGGR('Descendants( \[%1], 1, AFTER)', "ES_FIN_BGATE_BIRE"."BGATE".."Pnl"."Gen6,SITES" )
    I've got the following error:
    Syntax error in input MDX query on line 2 at token 'member' (HY000)
    Generate code:
    member \[Accounts].\[MS1] as 'Descendants( \[\[SITES].Generations(6)], 1, AFTER)', SOLVE_ORDER = 101
    select
    { \[Accounts].\[MS1]
    } on columns
    from \[BLUEGATE.Pnl]
    Thanks!

    The "Descendants" function needs a dimension member specification. You can't simply put a dimension level (as OBIEE uses for referencing hierarchy generations of an outline).
    This will work:EVALUATE('Intersect(Descendants([Deltas],1,SELF_AND_BEFORE),%1.dimension.members)', Scenario."Gen3,Scenario")This will work as long as you don't use any other columns (speaking OBIEE terms) from the specified dimension (in this case Scenario).EVALUATE('Intersect(Descendants(%1.dimension.CurrentMember,1,SELF_AND_BEFORE),%1.dimension.members)', Scenario."Gen3,Scenario")So as long as you manage to get a singular dimension member into the function you're ok. Think prompts / presentation variables. Lists of dimension members retrieved through dimension level specifications and filters will not work.
    Cheers,
    C.

  • Remove leading zeros using MDX function

    Hello,
    BO XI R3.1 SP2 FP2.5, SAP BW 7.0
    This seems simple, but I cannot find a solution.
    How do I remove leading zeros from a character field in a OLAP universe. Is there any MDX function?
    I tried
    <EXPRESSION>
    Value([0MATERIAL].[LEVEL01].[[20MATERIAL]].[Value])
    </EXPRESSION>
    <EXPRESSION>
    StrToValue([0MATERIAL].[LEVEL01].[[20MATERIAL]].[Value])
    </EXPRESSION>
    I can remove the leading zeros in Webi, but we require it for ad-hoc reporting? Is there a way to do this in the universe?
    Thanks,
    Nikhil

    Hi,
    SAP BW MDX only allows calcuated expressions that return numeric values: this is one if the main SAP MDX limitations.
    By the way there is the abilitiy to return string only for those expressions:
    [Dimension].currentmember.name
    [Dimension].currentmember.uniquename
    So you can do this:
    <EXPRESSION>
    (right([0MATERIAL].currentmember.name, 4))
    </EXPRESSION>
    <EXPRESSION>
    (right([0MATERIAL].currentmember.uniquename, 4))
    </EXPRESSION>
    <EXPRESSION>
    (left([0MATERIAL].currentmember.name, 3))
    </EXPRESSION>
    <EXPRESSION>
    (left([0MATERIAL].currentmember.uniquename, 3))
    </EXPRESSION>
    Otherwise you can use WebI formulas as described in the thread.
    Regards
    Didier

  • Problem using MDX functions in Answers Filter

    I'm using OBIEE 10.1.3.2.
    I'm using an Essbase cube as my datasource (aggregate storage).
    My level 0 members in my Date dimension are of the format yyyy-mm-dd (e.g., 2011-08-13)
    I have a dashboard prompt selecting the date from a calendar which returns the date and time (yyyy-mm-dd hh:mm:ss). So naturally I can't do just a straight equals between the prompt value and the member value.
    What I've written in the filter sql in Answers is: Date.Days = Evaluate('SUBSTRING(%1,1,10)','@{varStartDate}')
    The log shows the following:
    -------------------- SQL Request:
    SELECT Date.Days saw_0, main.total_completed_orders saw_1 FROM SIKAgg2 WHERE Date.Days = Evaluate('SUBSTRING(%1,1,10)','2011-08-09 00:00:00') ORDER BY saw_0
    -------------------- Sending query to database named mezen (id: <<9648>>):
    With
    set [Date4] as 'Filter([Date].Generations(4).members, (([Date].CurrentMember.MEMBER_ALIAS = "2011-08-09 00:00:00" OR [Date].CurrentMember.MEMBER_Name = "2011-08-09 00:00:00")))'
    select
    { [Measures].[total_completed_orders]
    } on columns,
    NON EMPTY {SUBSTRING(,1,10)SUBSTRING(,1,10)SUBSTRING(,1,10){[Date4]}} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from [SIKAgg2.main]
    So with all that being said it doesn't appear that the MDX function SUBSTRING is actually doing anything.
    1) Am I using the function incorrectly?
    2) Is there a better way to do this? I really just need to get rid of the time portion of the variable from the date prompt.
    Any help/guidance would be greatly appreciated. Spending too much time with trial and error approach.
    Thanks,
    Brad

    Brad,
    Try this way..In OBIEE RPD - Physical Layer for level 0 members in my Date dimension. Double click this member and check its type. Change the type to 'DATE' from 'DATETIME'. Delete the Date Dimension in BMM layer & Presentation Layer for again drag and drop from Physical Layer after changing the Type in physical layer.
    Normal way of building the RPD using Essbase
    Something similar to this http://www.rittmanmead.com/2009/03/dates-timestamp-and-oracle-bi-answers-filters/
    This shud solve your timestamp problem everywhere. This is one of the most common problem for Oracle sources. I have essbase as a source but unfortunately I can't replicate it as this is not having time level.
    Let me know if this solves your problem...
    In case the type is DATE only in RPD then I'll try to provide a diff soln here.
    Hope this helps

  • BO XI 3.1 Sp2 OLAP Universe - MDX Function

    Hi all,
    How i tuse MDX Functions in OLAP Universe ?
    Iam getting parse ok in Universe . getting error in while creating webi report

    Hi... i´ve seen that this is a typical question but i think it´s still not solved... I need to use the sentence showed but despite using measures using another dimension. I mean i want to create a new dimension which tell me if it has values or not so i want to create another one and use the function IIF and the sentence more or less like that:
    IIF(ISEMPTY(.[D7LE0EX5IUP5U83WHERK13M48]), 1, 0)</EXPRESSION> - it works
    May i use this sentence with dimension/characteristic values or it only works for measures ? Some idea of how to achieve what i´m looking for ?
    Thanks in advance.
    SAP BW 7.02 SP06
    BO XI 3.1 FP 3.5
    J.Casas

  • [Essbase] - using TopCount MDX  function

    Hi,
    I would like to use the TopCount MDX function in an ASO cube.
    I did manage to write the MDX query but did not find how to "convert" it as a MDX formula on the "MEASURE" dimension (well I am guessing).
    I thank you for your help!
    Thomas
    MDX query :
    IND_HITS is from the MEASURE dimension
    A2008 is from the YEAR dimension
    M1013210 is from the MESSAGE dimension
    SELECT
    [MOIS].Generations(1).Members
    ON COLUMNS,
    TopCount([USERS].Children,10, [IND_HITS] )
    ON ROWS
    FROM Cube_Log.Cube_Log
    WHERE ([A2008], [M1013210], [PARAMETRES],[HEURES],[TYPE])

    Hello
    I have an aggregate measure in a cube ASO, aggregating to a minimum, I tried to use the MIN function but have not worked out as expected in the first Essbase is the sum of the data and then calculates the minimum.
    This is the function used:
    IIF ( NOT IsLevel ( [Hospital].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Hospital] ),[L.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Marketing].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Marketing]),[A.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Listini].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Listini]),[C.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Bravo].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Bravo]),[D.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Product Cluster].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Product Cluster]),[E.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Area].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Area]),[F.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Area2].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Area2]),[G.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Area3].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Area3]),[H.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Area4].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Area4]),[I.Unknown].Level),[PrzListinoMINInput]),
    IIF ( NOT IsLevel ( [Customer].CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( [Customer]),[N.Unknown].Level),[PrzListinoMINInput]),
    0))))))))))
    how to proceed in these cases?
    Thank you

  • The MDX function CURRENTMEMBER failed because the coordinate for the attribute contains a set

     
    How to handle this error: The MDX function CURRENTMEMBER failed because the coordinate for the attribute contains a set. when executing MDX query:
    SELECT (
    { [Measures].[Amount]}
    )ON COLUMNS,
    [OrganizationUnits].[Description].[Description].MEMBERS,
    [OrganizationUnits].[IsCURRENT].[IsCURRENT]
    ) ON ROWS
    FROM
    (SELECT [OrganizationUnits].[Description] ON 0
    FROM
    [CubeName]
    WHERE(
    {[OrganizationUnits].[Description].&[Unit1],[OrganizationUnits].[Description].&[Unit2]}
    Thanks!!

    Hi Arth81,
    Please try the query below.
    WITH MEMBER MEASURES.IsCURRENT AS [OrganizationUnits].[IsCURRENT].[IsCURRENT].CURRENTMEMBER.NAME
    SELECT
    { [Measures].[Amount],MEASURES.IsCURRENT} ON COLUMNS,
    {[OrganizationUnits].[Description].[Description].MEMBERS,
    } ON ROWS
    FROM
    (SELECT [OrganizationUnits].[Description].MEMBERS ON 0
    FROM
    [CubeName]
    WHERE(
    {[OrganizationUnits].[Description].&[Unit1],[OrganizationUnits].[Description].&[Unit2]}
    Regards,
    Charlie Liao
    TechNet Community Support

  • MDX function UNORDER()

    Hi experts,
    I'm working on SAP Netweaver BI 7.01 with SP3 + Business Objects Edge XI 3.1 + Integration Kit
    In some sdn documents there is the following statement related to performance improvements of BI 7.01:
    sorting can be avoided by using a new UNORDER() function  in SAP's MDX
    Is the UNORDER() function already "active" when we use OLAP Universe in WebI? Or am I supposed to "activate" this function in the Universe Designer (eg. setting universe parameters) or somewhere else?
    Thanks
    Andrea

    Hi,
    the note clearly states that the correction is part of SP02 for BI 7.01, but it also mentiones that you need the latest kernel patch.
    The unorder function is supported as of build 26 of the MDX parser. For this, you must apply the latest kernel patch. For more information, see Note 494348.
    Ingo

  • Errors in MDX function of Universe and WebI

    Dear Experts,
    I need to create a object get MTD, YTD of PS volume measure in Universe get data from Cube in SAP Business Warehouse.I have been tried to do many time and based on OLAP Universe best practice document from Ingo Hilgefort but it still generates errors.
    <EXPRESSION> SUM(MTD([0CALMONTH].[LEVEL01].CurrentMember, @Select(PS Volume\PS Volume))) </EXPRESSION>
    --> generate error
    A database error occured. The database error text is:
    The MDX query WITH MEMBER [Measures].
    [C6F14DED-1942-4F00-8F,88,E6,F3,3] AS
    SUM(MTD[0CALMONTH].[LEVEL01].CUurrentMember),
    [Measures].[ZPS_VOL])'SELECT {[Measures]...} ON COLUMNS FROM [$ZSD_C01]
    <EXPRESSION> SUM(MTD([0CALMONTH].CurrentMember), @Select(PS Volume\PS Volume)) </EXPRESSION>
    --> generate error
    A database error occured. The database error text is:
    (cs) "Driver not capable". (WIS 10901)
    With simple fomular, system run ok
    <EXPRESSION> @Select(PS Volume\PS Volume) - @Select(PS Return Volume\PS Return Volume) </EXPRESSION>
    --> OK
    We use system:
    SAP EHP 1 for SAP NetWeaver 7.0 SP8
    BOBJ Edge 3.1 SP3 with Standard Package
    SAP Integration Kits 3.x
    Could experts help me to solve that problem?
    Thanks & Regards,
    Jack Luu

    Hi,
    This is a big task and can't really be explained too well in a post. But here's the short version of the process you must follow:
    1. In the information design tool, convert your old (unv format) universes to the new (unx) format and save them to the repository. This will create a new universe.
    2. In each Webi report, go to the query panel and switch the report from looking at the old universe to the new universe. Assuming you're not making any changes to the universe all the objects will match and it will just work.
    Chapter three of the information design tool manual is dedicated to converting old universes to new.
    Changing the universe that a Webi report uses is in the Webi manual, it isn't specific to a BI4.0 migration.
    As far as I know, it isn't possible to convert OLAP universes.
    Lastly, I'd suggest making sure you're using BI4.0 SP01 - the information design tool seems to have quite a few things ironed out.
    For a fast intro into the information design tool, you can [have a look at this|http://blog.davidg.com.au/2011/04/bi40-information-design-tool.html].
    Hope that helps!

  • Usage of LastPeriods MDX function in OBIEE

    Hi guys,
    First of all sorry for double-posting but maybe someone here knows about this.
    I seem to have stumbled upon another bug in 10.1.3.4 with Essbase 9.3.1 integration which I would like to run by you.
    Simplified case: display "Total Gross Sales" by "Fiscal Week" for the weeks t-4 through t-8 rolling.
    Have: one variable in Essbase for t-4 ("vCurrentWk_4")
    So starting in Answers I slap in "Fiscal Weeks" and "Total Gross Sales", working fine and resulting in this MDX:
    With
    set \[Time Period5] as '\[Time Period].Generations(5).members'
    select
    { \[Account].\[324]
    } on columns,
    NON EMPTY {{\[Time Period5]}} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from \[LOGIC_A.LOGIC]
    Now I add my filter to already constrain it to only week t-4. I.e. "Fiscal Week" is equal to / is in VALUEOF("myserver:vCurrentWk_4"). This also works fine and produces the following MDX:
    With
    set \[Time Period5] as *'Filter(\[Time Period].Generations(5).members, (\[Time Period].currentmember.MEMBER_ALIAS = "Q4-09 2009/01/30" OR \[Time Period].currentmember.MEMBER_Name = "Q4-09 2009/01/30"))'*
    select
    { \[Account].\[324]
    } on columns,
    NON EMPTY {{\[Time Period5]}} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from \[LOGIC_A.LOGIC]
    Up to making it rolling. Transform the filter into SQL and modify it to hold an MDX wrapped inside an EVALUATE to get the periods:
    *"Time Period"."Fiscal Week" IN (EVALUATE('LastPeriods(4, %1)' ,VALUEOF("myserver:vCurrentWk_4")))*
    Run it, fail with error
    Essbase Error: Syntax error in input MDX query on line 6 at token ')'
    and get the following MDX:
    With
    set \[Time Period5] as 'Filter(\[Time Period].Generations(5).members, (\[Time Period].currentmember.MEMBER_ALIAS = "Q4-09 2009/01/30" OR \[Time Period].currentmember.MEMBER_Name = "Q4-09 2009/01/30"))'
    select
    { \[Account].\[324]
    } on columns,
    NON EMPTY *{LastPeriods(4, )LastPeriods(4, )LastPeriods(4, ){\[Time Period5]}}* properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from \[LOGIC_A.LOGIC]
    Ok, that list of dimension members on rows looks weird since it loops and omits the variable I tried to pass. Members are referenced in "\[]" so let's try adding that:
    Filter:
    "Time Period"."Fiscal Week" IN (EVALUATE('LastPeriods(4, *\[%1]*)' ,VALUEOF("ch01s46:vCurrentWk_4")))
    Error:
    Essbase Error: Syntax error in input MDX query on line 6 at token '\['
    MDX:
    With
    set \[Time Period5] as 'Filter(\[Time Period].Generations(5).members, (\[Time Period].currentmember.MEMBER_ALIAS = "Q4-09 2009/01/30" OR \[Time Period].currentmember.MEMBER_Name = "Q4-09 2009/01/30"))'
    select
    { \[Account].\[324]
    } on columns,
    NON EMPTY {*LastPeriods(4, \[])LastPeriods(4, \[])LastPeriods(4, \[]){\[Time Period5]}*} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from \[LOGIC_A.LOGIC]
    Nope, not really better. Let's switch for the Essbase way of referencing variables:
    Filter:
    "Time Period"."Fiscal Week" IN (EVALUATE('LastPeriods(4, *\[&vCurrentWk_4])*'))
    Error:
    Essbase Error: Syntax error in input MDX query on line 2 at token 'OR'
    MDX:
    With
    set \[Time Period5] as 'Filter(\[Time Period].Generations(5).members, (\[Time Period].*currentmember.MEMBER_ALIAS = OR* \[Time Period].*currentmember.MEMBER_Name =* ))'
    select
    { \[Account].\[324]
    } on columns,
    *NON EMPTY {LastPeriods(4, \[&vCurrentWk_4])LastPeriods(4, \[&vCurrentWk_4])LastPeriods(4, \[&vCurrentWk_4]){\[Time Period5]}} properties ANCESTOR_NAMES, GEN_NUMBER on* rows
    from \[LOGIC_A.LOGIC]
    Err what?! Now I have the variable in the "on rows" but no longer in the currentmember.MEMBER_ALIAS or currentmember.MEMBER_NAME.
    In SmartView it's as easy as this:
    With
    set \[Time Period5] as 'Filter(\[Time Period].Generations(5).members, (\[Time Period].currentmember.MEMBER_ALIAS = "Q4-09 2009/01/30" OR \[Time Period].currentmember.MEMBER_Name = "Q4-09 2009/01/30"))'
    select
    { \[Account].\[324]
    } on columns,
    NON EMPTY LastPeriods(4, \[&vCurrentWk_4]) on rows
    from \[LOGIC_A.LOGIC]
    Has anyone stumbled across this before? Or do you know if this is an actual Oracle bug an known? (No, my customer hasn' tgiven me access to MetaLink, so I can't check :-( )
    Cheers,
    C.

    Update:
    Finally got a MetaLink account, raised an SR and they didn't even bother to ask more in detail. It's a definite bug in 10.1.3.4:
    "I reproduced the issue and have logged bug 8290627 to have this addressed.
    I did not find any workaround other than to enter real values instead of variables as arguments at this time."
    So bug + no workaround. Nice.
    Cheers,
    C.

  • Using "left" mdx function in script logic

    Hello experts,
    I'm fetching a selection from a package prompt into a logic.
    The dimension name is ENTITYCC, so the variable name is %ENTITYCC_SET%.
    In this prompt user can select members from a hierarchy like that :
    CH20
    --- CH201000
    --- CH202000
    --- CH203000
    FR20
    --- FR201000
    --- FR202000
    --- FR203000
    and so on
    In my logic I need to have the parent node selected, but in case the user select a leave, I need to keep only first four caracters of his selection (to simulate the fact he select the parent)
    left(%ENTITYCC_SET%,4)
    What would be the instruction to get in another variable only the first four caracters of %ENTITYCC_SET% ?
    Thanks for your ideas.
    G.

    Solved by myself, sorry for the useless post.
    (my solution is :
    *SELECT(%ENTITY%,"left([ID],4)","ENTITYCC","[ID] = '%ENTITYCC_SET%'")
    and remember to use lgf file and not lgx when there is mdx in the logic

  • Problem with MIN MDX Function on ASO

    Hello
    I have an aggregate measure in a cube ASO, aggregating to a minimum, I tried to use the MIN function but have not worked out as expected in the first Essbase is the sum of the data and then calculates the minimum.
    This is the function used:
    IIF ( NOT IsLevel ( Hospital.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Hospital ),http://L.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Marketing.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Marketing),http://A.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Listini.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Listini),http://C.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Bravo.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Bravo),http://D.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Product Cluster.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Product Cluster),http://E.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Area.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Area),http://F.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Area2.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Area2),http://G.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Area3.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Area3),http://H.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Area4.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Area4),http://I.Unknown.Level),PrzListinoMINInput),
    IIF ( NOT IsLevel ( Customer.CurrentMember, 0 ),
    MIN( Descendants(CurrentMember ( Customer),http://N.Unknown.Level),PrzListinoMINInput),
    0))))))))))
    how to proceed in these cases?
    Thank you

    Standard troubleshooting steps in the following order:
    1. Reset: Press the sleep/wake button & home button at the same time, keep pressing until you see the apple logo, then release. Ignore the slide to power off. You won't lose any data or settings.
    If no change, continue:
    2. Restore your phone from your most recent backup & re-sync your itunes content, Note however: if the problem is related to corrupt data in your phone's backup, while this will restore a fresh OS, it will also restore the problem.
    If no change, continue:
    3. Restore as a "new" phone in itunes & re-sync your content. All saved data will be lost.
    If no change, make an appointment at an Apple store, as you most likely have a hardware problem. There are no further user troubleshooting steps available.

  • Define DimensionAttribute type in the SSAS CUBE when using MDX function YTD()

    hi there:
      I am trying to use YTD() in mdx and am aware that I need to first define dimDate to Time type and define each dimensionAttribute to appropriate type. HOwever, I am very confused by the large amount of selections in the Type dropdown list.
    For example, I have a dimenionAttribute called [S Week Of Year] and in the type, there are two sections Calendar and Fiscal under Date and each contains week type, which one should I choose? Also is there any reference where I could learn to pick the right
    type? 
     thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    The value of the Type property for an attribute determines the attribute type, and specifies the type of information contained by that attribute. Many of the available options represent types which are used by client applications to display or support an
    attribute. Attribute types in Analysis Services fall in into five categorized groups. These attribute type groups include:
    General: These values are available to all attributes, and exist only to enable classification of attributes for client application purposes.
    Account Dimension: These values identify an attribute that belongs to an account dimension.
    Currency Dimension: These values identify an attribute that belongs to a currency dimension.
    Slowly Changing: These values identify an attribute that belongs to a slowly changing dimension.
    Time Dimension: These values identify an attribute that belongs to a time dimension.
    Please refer to the link below to see the details.
    http://beyondrelational.com/modules/2/blogs/65/posts/11577/ssas-dimension-attribute-properties-part-1.aspx
    Besides, here is a similar issue SSAS YTD issue Calendar vs. Fiscal for your reference.
    http://www.bidn.com/forums/microsoft-business-intelligence/analysis-services/1435/ssas-ytd-issue-calendar-vs-fiscal
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

Maybe you are looking for