When i compare multiple attribute it is not working in MDX query

Hi All,
i have create a measuer please see below code,
MEMBER [Measures].[a] as
case when
[DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide"  //Working
then "1"
when [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Herbicide"  //Working
then "1"
when  [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed" //Working
then "3"
when ([DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide" //Not working
and [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed")
then "1and2"
when  ([DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide"  //Not Working
and [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed"  )
then "1and3"
end
when i compare multiple attribute it is not working.

Hi manishcal16PPS,
According to your description, your calculated measure is not working when two when statement together. Right?
In this scenario, since the conditions in your case when statement are exclusive, you should use OR instead of AND operator.
when  ([DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide"  
OR
[DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed"  )
then "1and3"
Best Regards,
Simon Hou
TechNet Community Support

Similar Messages

  • I moved from the UK to Sweden. My trial expired in the UK but I was not able to purchase CC in Sweden for some reason. I was told to create a new account in Sweden with a new Adobe ID. When I did, the trial downloads did not work and I could not purchase

    I moved from the UK to Sweden. My trial expired in the UK but I was not able to purchase CC in Sweden for some reason. I was told to create a new account in Sweden with a new Adobe ID. When I did, the trial downloads did not work and I could not purchase the CC at discount price.

    Moving this discussion to the Adobe Creative Cloud forum.
    Kriskristferson if you are facing difficulties with your order then please contact our support team directly at Contact Customer Care.

  • When I switch between networks firefox is not working. I will have to close the browser and open it again!?

    Hi,
    I love firefox!!! I wanted it to be perfect all the time, one issue I come across with it recently is: When I switch between networks (say connecting to myoffice network through VPN when firefox is already open) firefox is not working. I will have to close the browser and open it again to make it work! could you please fix this.
    Thanks.
    Raja Pattamsetty

    If an option or preference settings not being saved after you restart firefox see:
    [http://kb.mozillazine.org/Preferences_not_saved Preferences not saved]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • HT4061 hi i have purchased iphone4 from vodafone australia 2 years back.it is unlocked, when i went to india .it was not working with any carrier in india.it was displaying no service.is it a problem of iphone or any other anybody please could let me know

    hi i have purchased iphone4 from vodafone australia 2 years back.it is unlocked, when i went to india .it was not working with any carrier in india.it was displaying no service.is it a problem of iphone or any other anybody please could let me know?

    Hi ashish,
    Did you contact TPG about activating International Roaming before you left for India:
    http://www.tpg.com.au/support/international_roaming.php
    Cheers,
    GB

  • Help - Multiple native extensions do not work

    Dear Adobe Air developer community and Adobe employees,
    My game dev. studio www.GoldSunGames.com is nearing completion on our biggest title developed with Adobe Air for iOS. During development we've hit countless  technical bumps in the road including issues with low memory, low performance and many others I can happily say have now been solved in big part to the help we've received from the Adobe Flash/Air community. Thanks!
    I am now reaching out to the community and any Adobe employees reading this to solve our last remaining major issue/bug with Adobe Air which is holding us back from releasing our title.
    Multiple native extensions do not work
    We can get any one single native extension to work including Game Center (with the help of MilkManGames). But multiple extensions together simply do not work. We are required by our publisher to have other iOS features included which require the use of multiple native extensions.
    A detailed break down of the programming process we are using can be found here:
    http://forums.adobe.com/thread/923158?tstart=0
    Any and all help is greatly appreciated. Free copy of the game in question "Megaplex Madness 2" to the problem solver or solvers.

    Thanks to Saumitra Bhave the problem has been solved!
    >> Does http://forums.adobe.com/message/4026961#4026961 help?
    Thanks

  • I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    Kowhai wrote:
    Lots of WIFI needs a username and password to get access. I guess you're lucky and yours is set up unsecured.
    Normal secured WiFi requires only a password to get access. The password is used to encrypt traffic between your device and the WiFi access point. If whatever you are using requires a username as well then it is not simply normal secured WiFi. It might be a subscription WiFi service like GOGO, ATT, etc., or a service with authentication, i.e., college campus, etc. To help you out we need to know what you are using and what connection dialog you are being presented with. You don't have exactly the same problem as the original poster. He is having a problem entering a password into the password dialog that iOS presents when one tries to connect to a normal secured WiFi network. Could you clarify exactly which WiFi service you are using.

  • HT204407 Notification when departing or arriving a location does not work in the latest version of find my friends (ios 7).

    Notification when departing or arriving a location does not work in the latest version of find my friends (ios 7).

    This is a user to user community, Apple are unlikely to read your comments, if you have any suggestions that you think might enhance iCloud you can send Apple your feedback here.

  • I keep getting a message that my ipad could not be activated because activation server is unavailable and when i try to use itune its not working as well.Plssss help

    i keep getting a message that my ipad could not be activated because activation server is unavailable and when i try to use itune its not working as well.Plssss help

    Has this iPad ever been jailbroken, had the OS rolled back, or used a beta version?

  • TS3367 when open the  face time microfiche is not working but if you use headset that time working

    when open the  face time microfiche is not working but if you use headset that time working

    Read through this... http://support.apple.com/kb/HT4319

  • TS3276 when I use cable my mail does not work. with wireless ok

    when I use cable my mail does not work. with wireless ok

    Unpower and restart it.  If that doesn't help, try holding menu and left navigation keys TOGETHER for 6 secs.
    AC

  • LIKE operator is not working in SQL Query in XML file

    Hi Gurus,
    LIKE operator is not working in SQL query in XML template.
    I am creating a PDF report in ADF using Jdeveloper10g. The XML template is as follows
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="catalogDataTemplate" description="Magazine
    Catalog" defaultPackage="" Version="1.0">
    <parameters>
    <parameter name="id" dataType="number" />
    <parameter name="ename" dataType="character" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
       SELECT ename, empno, job, mgr from EMP where deptno=:id and ename LIKE :ename || '%']]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="EmployeeInfo" source="Q1">
    <element name="EmployeeName" value="ename" />
    <element name="EMPNO" value="empno" />
    <element name="JOB" value="job"/>
    <element name="MANAGER" value="mgr" />
    </group>
    </dataStructure>
    </dataTemplate>
    if i pass the parameter value of :ename from UI, it doesn't filter. But if I give ename = :ename it retrieves the data. Can anyone help me why LIKE operator doesn't work here?
    Appreciate your help,
    Shyamal
    email: [email protected]

    Hi
    Well for a start, you are doing some very strange conversions there. For example...
    and to_char(a.msd, 'MM/DD/YYYY') != '11/11/2030'
    and to_char(a.msd, 'MM/DD/YYYY') != '10/10/2030'If a.msd is a date then you should e converting on the other side ie.
    and a.msd != TO_DATE('11/11/2030', 'MM/DD/YYYY')
    and a.msd != TO_DATE('10/10/2030', 'MM/DD/YYYY')Also, you may want to take into consideration nothing being input in :P2_ITEM_NUMBER like this...
    AND INSTR(a.item_number,NVL(:P2_ITEM_NUMBER,a.item_number)) > 0Is item number actually a number or char field? If it's a number, you want to explicitly convert it to a string for using INSTR like this...
    AND INSTR(TO_CHAR(a.item_number),NVL(TO_CHAR(:P2_ITEM_NUMBER),TO_CHAR(a.item_number))) > 0?
    Cheers
    Ben

  • Multiple page per sheet not working...

    Dear all,
    Since some time now (even before Mavericks), the "Multiple page per sheet" is not working.
    When I select it and print (either to PDF or to any of my printers), I always get 1 page per sheet... and I can't save trees!!!! 
    Do you know how to fix this ?
    Thank you very much.
    Best regards,

    Ar eyou able to print to PDF? If you have that facility select Adobe PDF in the pop down menu, go to properties and the first tab has layout, you should be able to select number up required, save to PDF and open the new PDF...this should be stepped up how you want it.
    Alternatively if you have Illustrator or Indesign (Quark works too) you can create a page with picture boxes and import/place the PDF however many up you want.

  • Multiple forms in JSF not working

    Hi
    I am using JSF 1.1 via WebSphere 6.1 and am having problems with multiple forms in a jsf page. I have a search command button on the page and a bunch of command links in a datatable. I have a h:form for the command button and another h:form for the datatable.
    The command button works fine. But the links don't. They just show the same page again and the action behind the commandLink is never called. I see many posts from way back about multiple forms not working in a jsf page.
    Is there a fix or workaround to this problem?
    Any pointers would be much appreciated.

    All replies so far have focused on solving multiple form issues. I have no problem with multiple forms per page but exactly like the original poster I can not get my h:commandLinks to work when embedded in a h:datatable.
    I have command buttons before and after the data table working great, but for whatever reason command links just do a post back to the backing bean.
    At this point I am not even trying to process data, just verify the action method is being executed.
    Another item of note, the links will always post to the same bean regardless of what bean is referenced in action="...."
    Any ideas?
    Message was edited by:
    jasontc
    It appears once the page is rendered for the first time any future rendering will display the link(s) but the link(s) will be junk.
    I ran a test with a pre populated ArrayList for my datatable, link worked. I then reload the datatable with a different ArrayList and the link is still referencing the original item in the list. So the action method I want to call is called but the .getRowData is incorrect. In addition of the number of items in my list grows the links become junk beyond the original size of the list.

  • I am attempting to upload multiple photos on a macpro from a cd.  I am used to a pc.  I tried using the command button to select multiples but it does not work.  Please advise

    I am attempting to upload multiple photos on a mac pro from a cd.  I have tried holding the "command"button down to select multiple photos but it does not work.  Please advise.  Thanks,John

    why not sort by (name, date, etc) and Click on 1st and Shift-Click on last.
    Might work better to copy or import to a project folder.
    https://discussions.apple.com/community/ilife/iphoto
    http://www.apple.com/support/iphoto

  • Copy Settings to multiple images - STILL A NOT WORKING AFTER MANY VERSIONS!

    I have reported the problem of pasting settings to multiple images for many versions and this simple bug is STILL present in LR4!
    In develop module, make changes to an image, click Copy button, select settings to copy.
    Now, select a range or a number of images to which you want to paste the settings, click Paste button.  Guess what?  Only the first image gets the settings!
    This functionality should work and is even documented in the manual.  There are other ways of copying settings but I can never remember how to do this.
    Am I doing something wrong or is this a genuine bug that only seems to affect a few people (I did a web search for V3), or do people just not use this function?
    Please developers, fix this bug if it really is a bug!

    Thanks Dorin for the information.
    I guess I am just frustrated that the program does not work the way it is documented.  There are two very prominent buttons, Copy & Paste and they don't work as documented or as you would expect them to.
    With sync you have to navigate menus to do what one click of the mouse should accomplish.  All I want is some acknowledgement from Adobe that this is a bug and for it to be adressed.  As a long-time IT person I know this would be VERY easy to fix.  If it cannot be fixed then update the documentation.
    Oh well, enough said.  I still love LR!!!

Maybe you are looking for