MDX Outline Formuale - Help

Hi,
I have outline MDX formulae is attached to measure member "Y" in ASO outlilne:
X is another measure in the outline. I have dimension like : DIMx where x is 1 to 9. DIM1 is measure dimension
IIF(X = 0 , IIF(Count(Intersect({DIM3.CurrentMember}, {Descendants([DIM3 Member]))}))=0, X, <SUM Logic>),X)
This formulae is applying to all the member combination now.
It should be applicable to all the members in the outline expect members in different dimension ( Say DIM2,DIM4,DIM5). I want apply different Sum Logic for them.
In other words, I dont want to apply this formula (Sum logic) when my current member combination is having members from DIM2,DIM3,and DIM4.
How can it be redesigned to cater the issue having current logic in place?
Please let me know if any other information is requried
TIA
Edited by: user636938 on Nov 22, 2008 9:26 AM
Edited by: user636938 on Nov 22, 2008 9:27 AM

You can't fully exclude a dim, but basically you would just tell your formula to evaluate only for the root member. So use a CASE statement to say when the member IS Dim2, Dim4, Dim5, etc, then execute the formula. This will keep the formula from evaluating when you drill on those dimensions and perform much better, which I assume is why you are trying to do this.

Similar Messages

  • Outline drawing help

    Hi all
    I have been working on an outline drawing from an image using this tutorial: http://virtualphotographystudio.com/photographyblog/2008/12/17/use-photoshop-to- create-a-line-drawing-from-a-digital-image/
    everything works great the only thing I am not sure how to do is how to change the colour of the outlines from the grey to a blue or black outline.
    can any help me explain how to change the colour of the line drawing to a blue/ black or what ever colour prefered?
    many thanks for your help
    I have attached demo psd file

    In the imaging model, type has paint attributes. There is a paint attribute for the spline path, called the stroke, and a paint attribute for the fill inside the spline path. When you select Outline in the Font menu, whatever Apple application you use you are telling the imaging system that you want to set the fill attribute to None. The imaging system has a predefined attribute for the stroke since if it had not then the stroke default would be None. And if it were None, you would not see the type at all - neither the fill that you yourself set to None nor the stroke that was None in the type and should therefore be set to something positive. If you don't want this behaviour, don't use the Outline command in the Font menu, simply.
    /hh

  • MDX - MIN Function Help

    I just have 2 dims (Measures and Segment). The below formula is on my Measurs member 'Min $/Yd'. My data is loaded to 'Dollars' member.
    When I retrive on spreadsheet the below MDX gives me the MIN of the entire Segment dimension rather than the MIN of all the level zero members of the parent I'm currently retrieving on. Any ideas what I did wrong?
    Min(
    Filter ( CurrentMember( [Segment] ).levels(0).Members,
    [Dollars] <> Missing ),
    [Measures].[Dollars]
    )

    Answere was that you can't use 'Levels 0' as that defaults to the dim level. Thus it should be:
    Min(
    Filter ( Leaves( [Segment] ).CurrentMember,
    [Dollars] Missing ),
    [Measures].[Dollars]
    )

  • How to format the Nonemptymember function in an MDX outline formula

    trying to use the NONEMPTYMEMBER function to speed up a complicate nested IIF statement in a ASO cube. Cannot seem to get it to verify.
    I simplified it for testing and still could not get it to verify.
    IIF(NONEMPTYMEMBER([Currency].[USD_Rate],[Product].[No Product]),0,2)
    Thanks
    Tom

    Try defining the NONEMPTYMEMBER Funtion at the beginning of the formula.
    Example:-
    NONEMPTYMEMBER [Product] *(you can specify either a single member or member list or you can use NONEMPTYTUPLE for a cross-dimensional member specification)*
    IIF(([Currency].[USD_Rate],[Product].[No Product]),0,2)
    Regards,
    RSG
    Edited by: RSG on Jun 14, 2011 9:21 PM

  • Formual help

    hello.  I would like to create a formula on two variables, with a value condition on one of them.
    my vars:
    enc
    compliance (values = I, R)
    my report is a crosstab on compliance, so it looks like this;
    I___R ____Sum
    Enc_Enc
    10__10____30
    i want to compute enounters (where compliance = R) / sum of encounters (for all encounters).  So in my example, it would be 10/30, or 0.33
    my current forumla looks like this like =<encounters>/Sum<encounters> 
    but i want to subset the numerator to encounters where compliance = 'R'.  how do i do that?  Thanks,
    Andy

    Hi Andy,
    Create a variable (e.g. enc_R) like:
    =<enc> Where (<Compliance> = "R")
    In you crosstab add an additional footer column where you add the formula:
    =<enc_R> / Sum(<enc>)
    Regards,
    Harry

  • Macbook pro 2011 13" i5 slowed down, any help would be much appreciated (detailed info).

    Ok first off let me preface with as much detailed information as possible, as i have read many many posts on problems and hopefully mine will be detailed enough to not cause all you wonderful people a headache.
    Machine Details
    Macbook Pro 13inch model  (2011)
    Core i5 4gb RAM 250gb Standard harddrive
    As I am a very inexperienced I would very much appreciate a very idiot proof explaination, but any help I will be very thankfull for.
    The laptop was running like a dream and much better than I remembered my last mac (Macintosh LC) ever did. Ive had minor hickups this last year (a trackpad that went bust under warranty and a broken power supply) otherwise its been a wonderfull experience. The final hiccup that might be a cause, not sure hence I will mention it is that my battery is Conditon: Replace Now for about a month now.
    The laptop, as always was left ON, on its own connected to the wifi home network, when I returned the computer was working very slow. Any load on the harddrive/CPU. The cursor starts lagging (jumping), any keypresses are registered with a 2-10second delay. Any vidoes that i would try to play would suffer freezes in framerates/jams but audio remained fine. First step i was afraid that i may have contracted one of the new trojans so i downloaded an antivirus program, scanned the drive, but came out clean. Second step was to format the drive and perform a fresh install of OSX but no luck. Being inexperienced in Apple products i assumed that my harddrive (used to PCs) was on the fritz and went out and bought a 160gb Western Digital Black series 2.5inch harddrive. Having read all the guides and official knowledge bases on how to swap out the harddrive I did so with success. I placed in my installation OS 10.6 CD formatted the drive through the disk utility and performed a fresh install. Before doing any steps I went through the update cycle a couple of times till only the thunderbolt update remained (havent updated as I never used it). Sadly it hasnt solved the problems with cursor repsonse lag, video playback, and keyboard input lag under load.
    On this install I have performed:
    Verify Disk Permissions Many were found so I performed Repair Disk Permissions
    Verify Disk Came up with "Appears to be OK"
    performed a Pram reset (CMD+option +P +R)
    My main problem is that I live in europe nowadays (Poland to be precise) and cant go to a genius bar as they dont exist, and sadly the support is a tad behind the US standards and any minor repair will be at least a 4 week wait, hence i would like to try to exhaust possible solutions before giving it off to professionals: being a month out of the warranty period has abit to do with it too:)
    Sorry for the wall of text
    Thanks guys for any help you could throw my way!
    Chris M

    See the following:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    You may want to check for other issues outlined here:
    Helpful Links Regarding Flashback Trojan
    Visit Thomas Reed's site for insight and help: Mac Malware Guide
    A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started. However, be careful about what you do as new variants of the malware circumvent the efforts of earlier tools.
    Also see Apple's article About Flashback malware.
    Apple has released Java updates for Snow Leopard and Lion users:
    Java for OS X Lion 2012-003; available only for users of Lion with Java installed.
    Java for Mac OS X 10.6 Update 8; available only for users of Snow Leopard.
    Flashback malware removal tool; available only for users of Lion without Java installed.
    Install whichever shows up in Software Update. It removes the malware (if present), updates Java (if present) and tightens up Java settings for the future.  You may download from Apple's web site instead of using Software Update, but it's important to know which one to get, because the other two won't work for you.
    For the truly paranoid see 10 Simple Tips for Boosting The Security Of Your Mac.
    However, I find it hard to understand the problems you describe on a computer if you erased the drive and reinstalled a fresh copy of OS X.

  • Using Rank function in mdx

    I have the following data in my cube
    Prod ID  Account ID     Measure
    1            10                    20
    2            10                    20
    2            20                    10
    Now I want an mdx query which would show an aggregation against the Account ID 10 as 20 only and not 40 as the Account ID is the same which means the desired output has to be something like
    Account ID  Measure
    10                20
    20                10
    Note that Prod ID and Account ID are from different Dimensions.
    Please let me know how do I do this in MDX. Any help is greatly appreciated!!

    Hi N
    Another option is to use the Generate function and just take the last Prod Id for each Account.  Your MDX will look something like
    select non empty 
    {[Measures].[MyMeasure]
    } on 0, 
    non empty  
    generate([Account ID].[Account ID].[Account ID].members
    ,tail(nonempty([Prod ID].Prod ID].Prod ID]*[Account ID].[Account ID].currentmember,[Measures].[MyMeasure]),1))
    on 1
    from MyCube 
    Richard

  • Drill down in the esssbase outline

    Looks like this is the true essbase knowledge base forum. I am experiencing a prob that I am hoping that someone has the answer to:
    There is a long long delay when I attempt to drill down in my outline. The outline is relatively small (a few hundred members) and the issue exist within all of of the dimensions (6 of them). It use to behave normal but just encountered this prob a few weeks now. Loading the app and data base is normal - just drilling down in teh outline presesnts a prob. Any idea what may be the cause? i am using the client version of EAS and teh serveris located on the same floor in the building where i sit. Essbase version 11.2.1
    tkx
    don

    If it is ASO, compacting outline may helps you.
    To compact ASO outline, refer
    http://www.essbaselabs.com/2011/11/11/essmdq-utility-for-aso-outline-compression/
    http://glennschwartzbergs-essbase-blog.blogspot.com/2010/06/aso-outline-compaction.html
    http://timtows-hyperion-blog.blogspot.com/2010/06/essbase-outline-performance-testing.html

  • MDX Script for adding to column values

    Hi Experts,
    I am new in ASO MDX, need some help.
    I have one ASO out line in which I want to fetch addition of "Sales Tax" and "Income Tax" where as there are some other taxes also in "Total Tax". I want to fetch only the sum of "Sales Tax" AND "Income Tax".
    Thanks

    IF you have a look at - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?mdx_sum.html
    It gives you an example of how to create a calculated member..
    or just use something like
    WITH MEMBER [Accounts].[Sales Tax + Income Tax] AS ' [Accounts].[Sales Tax] + [Accounts].[Income Tax]'
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Account blocked pls help not a week old!

    My account is suspended.
    But i have dont have a week this new account i am very happy about my new account.
    Today i get logout on phone and PC.
    i dont know what is the problem i change 3 times my password dont working i can't login.
    How to fix it pls help me...
    i hope you understand me.
    Username : [Redacted for privacy]
    First things, first: for your safety and protection, please never, ever include any personally identifiable information such as your real name, Skype account name, e-mail address, or a telephone number in a post on a public Community or forum such as this. Thanks!

    Hi, mather201, and welcome to the Community,
    Please check this FAQ to see if the steps outlined will help recover your account:
    https://support.skype.com/en/faq/FA10946/what-should-i-do-if-my-account-is-suspended-hacked-or-compr...
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Converting Calc to MDX

    Hi Experts,
    I am very new to MDX, hence need help in converting this calc into MDX Query-
    If(@ISIDESC("L-206125"))
         "70170023"
    EndIF;
    Where "L-206125" is from Departments dimension and "70170023" from Accounts. I have this formula on one more Department.
    I tried to convert in MDX and got this-
    IIF (Is(Departments.CurrentMember,[L-206125]) OR Count(Intersect({Descendants[L-206125]},{Departments.CurrentMember}))= 1)),Accounts.[70170023], #Missing)
    But I am getting syntax error whenever I validate this.
    Please anyone help me out of this issue?

    I took your requirement (sort of) and transferred it to my second favorite Essbase database in the whole wide world, aka, ASOSamp.Sample and, if you'll forgive my my child-like MDX:
    CASE WHEN CONTAINS([Geography].Currentmember, Descendants([North East])) THEN
         [Original Price] * -1
    ELSE
         42
    ENDWorks for me.
    So in your case:
    CASE WHEN CONTAINS([Departments].Currentmember, Descendants([L-206125])) THEN
         [70170023]
    ELSE
         Missing
    ENDDo you really want to write Missing to all other intersections, or just the first condition in the CASE? You decide.
    Regards,
    Cameron Lackpour

  • MDX Query - NOT EQUAL

    I have a query in which I need to get the Percent(KF) difference for 2 months based on Region excluding a country.
    For example
    NOV 2005  - 96%
    OCT 2005  - 95%
    My input will be the 2 months and my Output should look like +1%.
    Also COMP_AREA = 03 is asia. But then I want to exclude only JAPAN.
    Please help..

    Hello,
    Pls refer to sap online help on how to write mdx queries.
    http://help.sap.com/saphelp_nw04s/helpdata/en/14/a3639e028a144d8c8b7dd403b22a1a/frameset.htm
    You can test your query using the tcode MDXTEST on your BW system.
    Cheers! Bill

  • Blue outline on clip?

    When i insert a photo, in a photo in photo, when i click play, to see the overall result, it does not show. It has a blue outline, but the other ones have a grey outline on the clip, and it shows when i click play. What do i do? I wasnt sure how i got the grey outline. Help please?

    Hey AshleyAsha,
    Thanks for the question. It sounds like you are using the picture-in-picture feature of iMovie and wish to change the border color. To do so, you’ll want to click the Adjust button in the toolbar after selecting the picture-in-picture effect. In the controls, you can then set a border color. For more information, see the “Adjust a picture-in-picture clip” section of this resource:
    iMovie Help: Create a picture-in-picture clip
    http://help.apple.com/imovie/mac/10.0/#mova1aaa682b
    Thanks,
    Matt M.

  • MDX Syntax

    Hi
    I am trying to create my first MDX query.. I am not quit sure about the syntax...
    I am trying to select one field of a cube
    Char : SORG
    Cube : ATH
    running so :
    SELECT
    FROM $ATH
    nothing happens..no message.. no results
    taking with drag and drop the key for the char
    SELECT [SORG].[2SORG]
    FROM $ATH
    or
    SELECT [SORG].[2SORG]
    FROM ATH
    or
    SELECT [SORG].[2SORG]
    FROM [ATH]
    then :
    Invalid MDX command with FROM
    how should be the correct syntasix??
    Thanks
    FedeX

    Hi,
    I assume you are using transaction MDXTEST.
    After you selected a Catalog and an Infocube, you can write the following (just an example):
    SELECT (drag in the name of the infoobjects from the list of available objects on the left) ON COLUMNS
    FROM (drag in the name of the infocube from the list of available objects on the left).
    In your example - this would be something like:
    SELECT [SORG].MEMBERS ON COLUMNS
    FROM $ATH
    In the buttom of the available items, you also have Syntax templates that can help you out.
    Here are some more examples:
    [MDX Examples|http://help.sap.com/saphelp_nw04/helpdata/EN/a7/18533d6dd60610e10000000a114084/content.htm]
    Hth,
    Jacob

  • Error: 1012704 Dynamic Calc processor cannot lock more than [25] ESM blocks

    Dear All,
    I get the Following Error in the Essbase console when I try to Execute any CalcScript.
    Error: 1012704 Dynamic Calc processor cannot lock more than [25] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting)_+
    Please find the detailed output of the Statics of my Planning Applications Database and outline.
    please help guys........
    GetDbStats:
    -------Statistics of AWRGPLAN:Plan1 -------
    Dimension Name Type Declared Size Actual Size
    ===================================================================
    HSP_Rates SPARSE 11 11
    Account DENSE 602 420
    Period DENSE 19 19
    Year SPARSE 31 31
    Scenario SPARSE 6 6
    Version SPARSE 4 4
    Currency SPARSE 10 10
    Entity SPARSE 28 18
    Departments SPARSE 165 119
    ICP SPARSE 80 74
    LoB SPARSE 396 344
    Locations SPARSE 57 35
    View SPARSE 5 5
    Number of dimensions : 13
    Declared Block Size : 11438
    Actual Block Size : 7980
    Declared Maximum Blocks : 3.41379650304E+015
    Actual Maximum Blocks : 1.87262635317E+015
    Number of Non Missing Leaf Blocks : 10664
    Number of Non Missing Non Leaf Blocks : 2326
    Number of Total Blocks : 12990
    Index Type : B+ TREE
    Average Block Density : 0.01503759
    Average Sparse Density : 6.936782E-010
    Block Compression Ratio : 0.001449493
    Average Clustering Ratio : 0.3333527
    Average Fragmentation Quotient : 19.3336
    Free Space Recovery is Needed : No
    Estimated Bytes of Recoverable Free Space : 0
    GetDbInfo:
    ----- Database Information -----
    Name : Plan1
    Application Name : AWRGPLAN
    Database Type : NORMAL
    Status : Loaded
    Elapsed Db Time : 00:00:05:00
    Users Connected : 2
    Blocks Locked : 0
    Dimensions : 13
    Data Status : Data has been modified
    since last calculation.
    Data File Cache Size Setting : 0
    Current Data File Cache Size : 0
    Data Cache Size Setting : 3128160
    Current Data Cache Size : 3128160
    Index Cache Size Setting : 1048576
    Current Index Cache Size : 1048576
    Index Page Size Setting : 8192
    Current Index Page Size : 8192
    Cache Memory Locking : Disabled
    Database State : Read-write
    Data Compression on Disk : Yes
    Data Compression Type : BitMap Compression
    Retrieval Buffer Size (in K) : 10
    Retrieval Sort Buffer Size (in K) : 10
    Isolation Level : Uncommitted Access
    Pre Image Access : No
    Time Out : Never
    Number of blocks modified before internal commit : 3000
    Number of rows to data load before internal commit : 0
    Number of disk volume definitions : 0
    Currency Info
    Currency Country Dimension Member : Entity
    Currency Time Dimension Member : Period
    Currency Category Dimension Member : Account
    Currency Type Dimension Member :
    Currency Partition Member :
    Request Info
    Request Type : Data Load
    User Name : admin@Native Directory
    Start Time : Mon Aug 15 18:35:51 2011
    End Time : Mon Aug 15 18:35:51 2011
    Request Type : Customized Calculation
    User Name : 6236@Native Directory
    Start Time : Tue Aug 16 09:44:10 2011
    End Time : Tue Aug 16 09:44:12 2011
    Request Type : Outline Update
    User Name : admin@Native Directory
    Start Time : Tue Aug 16 10:50:02 2011
    End Time : Tue Aug 16 10:50:02 2011
    ListFiles:
    File Type
    Valid Choices: 1) Index 2) Data 3) Index|Data
    >>Currently>> 3) Index|Data
    Application Name: AWRGPLAN
    Database Name: Plan1
    ----- Index File Information -----
    Index File Count: 1
    File 1:
    File Name: C:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\APP\AWRGPLAN\Plan1\ess00001.ind
    File Type: INDEX
    File Number: 1 of 1
    File Size: 8,024 KB (8,216,576 bytes)
    File Opened: Y
    Index File Size Total: 8,024 KB (8,216,576 bytes)
    ----- Data File Information -----
    Data File Count: 1
    File 1:
    File Name: C:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\APP\AWRGPLAN\Plan1\ess00001.pag
    File Type: DATA
    File Number: 1 of 1
    File Size: 1,397 KB (1,430,086 bytes)
    File Opened: Y
    Data File Size Total: 1,397 KB (1,430,086 bytes)
    File Size Grand Total: 9,421 KB (9,646,662 bytes)
    GetAppInfo:
    -------Application Info-------
    Name : AWRGPLAN
    Server Name : GITSHYPT01:1423
    App type : Non-unicode mode
    Application Locale : English_UnitedStates.Latin1@Binary
    Status : Loaded
    Elapsed App Time : 00:00:05:24
    Users Connected : 2
    Data Storage Type : Multidimensional Data Storage
    Number of DBs : 3
    List of Databases
    Database (0) : Plan1
    Database (1) : Plan2
    Database (2) : Plan3

    ESM Block Issue
    Cheers..!!

Maybe you are looking for