<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: create new object (measure) with IIF function on BW Olap universe:mdx error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485409#M2368185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;it works fine now with both proposals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i have another question quite similar&lt;/P&gt;&lt;P&gt;i would like to create a new measure which is filtered on a value of a dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;i have the following numeric standard measure "REVENUE" whose select is [Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to create another dedicated measure on the universe wich is the "REVENUE" above , filtered on a value of the character dimension "L01 Currency Type" whose select is [0CURTYPE].[LEVEL01]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought i could create a new measure "REVENUE GLOBAL CURRENCY" whose select is &amp;lt;EXPRESSION&amp;gt;@Select(Key Figures\Revenue)&amp;lt;/EXPRESSION&amp;gt; but filtered on the value "10" of the &amp;lt;EXPRESSION&amp;gt;@Select(Currency Type\L01 Currency Type)&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have seen on your OLAP universes best practice V1.5 on page 4 that there seems to be something simalar &lt;/P&gt;&lt;P&gt;Filtered measure / Restricted key figure: Single member : (([Measures].[0D_INV_QTY],[0CALQUARTER].[19981],[0D_DIV].[7])&lt;/P&gt;&lt;P&gt;but i do not know really how to use it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2010 18:11:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-18T18:11:56Z</dc:date>
    <item>
      <title>create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaq-p/6485405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a universe based on a BEX query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create a new object (a measure) with the IIF(,,) function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created the following select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;IIF(@Select(Currency Type\CurrencyTypeCode)="10",@Select(Key Figures\RevenueGlobalCurrency),@Select(Key Figures\RevenueLocalCurrency))&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defined as number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;CurrencyTypeCode is a dimension (character format)&lt;/P&gt;&lt;P&gt;RevenueGlobalCurrency and RevenueLocalCurrency are measure (number format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i always have a parse which is OK but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i want to  use the object on a webi report i always have an MDX error : ...invalid MDX with .... (WIS 10901)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and advise ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 10:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaq-p/6485405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485406#M2368182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Universe Designer parses everything except MDX statement enclosed in &amp;lt;EXPRESSION&amp;gt; tags.&lt;/P&gt;&lt;P&gt;By the way, the error is normal the correct syntax for your expression is IIF and not IF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have delivered with BOE XI 3.1 SP2 and MDX dictionary that fives you the MDX statements you can use in the object editor.&lt;/P&gt;&lt;P&gt;See SAP BW MDX functions document in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 14:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485406#M2368182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485407#M2368183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry but it seems i wrote iif ....not if ...please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And about pdf file, i can't open it . It seems it is corrupt.&lt;/P&gt;&lt;P&gt;i've sent you an email about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 19:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485407#M2368183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T19:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485408#M2368184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I successfully opened the PDF using the hyperilink.&lt;/P&gt;&lt;P&gt;In your MDX you must replace &lt;STRONG&gt;@Select(Currency Type\CurrencyTypeCode)&lt;/STRONG&gt; by one out of the 2 proposals :&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[Characteristic definition].currentmember&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;	&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[currency definition].currentmember.properties("[currency key]")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, if I use  "Statistics currency" characteristic then the expression will be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;	IIF ([0STAT_CURR].currentmember = "10", @Select(Key Figures\RevenueGlobalCurrency), @Select(Key&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Figures\RevenueLocalCurrency))&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;	IIF ([0STAT_CURR].currentmember.properties("[20STAT_CURR]") = "10", @Select(Key Figures\RevenueGlobalCurrency), @Select(Key Figures\RevenueLocalCurrency))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current member return the caption whereas the key property returns the key value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 09:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485408#M2368184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485409#M2368185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;it works fine now with both proposals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i have another question quite similar&lt;/P&gt;&lt;P&gt;i would like to create a new measure which is filtered on a value of a dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;i have the following numeric standard measure "REVENUE" whose select is [Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to create another dedicated measure on the universe wich is the "REVENUE" above , filtered on a value of the character dimension "L01 Currency Type" whose select is [0CURTYPE].[LEVEL01]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought i could create a new measure "REVENUE GLOBAL CURRENCY" whose select is &amp;lt;EXPRESSION&amp;gt;@Select(Key Figures\Revenue)&amp;lt;/EXPRESSION&amp;gt; but filtered on the value "10" of the &amp;lt;EXPRESSION&amp;gt;@Select(Currency Type\L01 Currency Type)&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have seen on your OLAP universes best practice V1.5 on page 4 that there seems to be something simalar &lt;/P&gt;&lt;P&gt;Filtered measure / Restricted key figure: Single member : (([Measures].[0D_INV_QTY],[0CALQUARTER].[19981],[0D_DIV].[7])&lt;/P&gt;&lt;P&gt;but i do not know really how to use it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 18:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485409#M2368185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T18:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485410#M2368186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact this type of calculated measure is quite easy to write in MDX.&lt;/P&gt;&lt;P&gt;The syntax is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;([Measures].[Measure definition], [Dimension].[Member definition])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to solve your expression, the correct syntax is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;([Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y], [Currency Type].[10])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 07:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485410#M2368186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T07:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485411#M2368187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier,&lt;/P&gt;&lt;P&gt;i was very happy seing your answer&lt;/P&gt;&lt;P&gt;so i tried but it seems it does not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to create new measures in the BW based olap universe.&lt;/P&gt;&lt;P&gt;I tried the 3 following syntaxes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;[Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y], [L01 Currency Type].[10]&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;[Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y], [0CURTYPE].[10]&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;[Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y],[0CURTYPE].[LEVEL01].[[20CURTYPE]].[10]&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;[Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y],[0CURTYPE].[20CURTYPE].[10]&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the one you sent :&amp;lt;EXPRESSION&amp;gt;Measures.4FVLHFZZRL0YFNCVUCUU9JQ9Y, Currency Type.10&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but each time i try tu use the object on the webi (rich client) report&lt;/P&gt;&lt;P&gt;i have twice the same error message&lt;/P&gt;&lt;P&gt;query1 - &amp;lt;universe name&amp;gt;&lt;/P&gt;&lt;P&gt;some objects are no longer available in the universe. See Your BusinessObjects Administrator (who i am) (Error WIS 00001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use other measure ( for example the [Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y] one) i have no error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485411#M2368187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485412#M2368188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is whar I wrote in my previous answer:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;([Measures].[4FVLHFZZRL0YFNCVUCUU9JQ9Y], [Currency Type].[10])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your test you forgot the right an left parenthseis in the expression!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 14:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485412#M2368188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485413#M2368189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;Now it works : i do not understand why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct syntaxe of my new measure is : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;EXPRESSION&amp;gt;([Measures].[4FVLHG7OAJMNY9WC06X6JLOZQ], [0CURTYPE].[10])&amp;lt;/EXPRESSION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not works with my "L01 currency type" BO dimension &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;([0CURTYPE].[LEVEL01])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; when i had :&lt;/P&gt;&lt;P&gt;-my universe is based on a BW BEX query&lt;/P&gt;&lt;P&gt;-my universe has been automaticaly generated with the assistant&lt;/P&gt;&lt;P&gt;-the Currency Type Class was define as below:&lt;/P&gt;&lt;P&gt;       - 1 BO dimension object : L01 Currency Type =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;       - 3 BO detail objects : L01 Currency Type techName =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01].[TECH_NAME]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                          L01 Currency Type Key =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01].[[20CURTYPE]].[Value]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                         L01 Currency Type Long Name =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01].[[40CURTYPE]].[Value]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i always had a wrong mdx syntax error on the webi report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i updated the class with the follow&lt;/P&gt;&lt;P&gt;     - 1 BO dimension object : L01 Currency Type =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01] (idem)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;       - 3 BO detail objects : L01 Currency Type techName =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01].[TECH_NAME]  (idem)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                          L01 Currency Type Key =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01].[NAME] (updated)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;                                         L01 Currency Type Long Name =&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0CURTYPE].[LEVEL01].[DESCRIPTION] (updated)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it was working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i tried to reproduce from scratch and now it also works with the previous version of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand anything&lt;/P&gt;&lt;P&gt;Is there something like a cache file of the MDX query (in RSRT, cache mode is set to inactive for the bex query) ?&lt;/P&gt;&lt;P&gt;ps: this is the same if a use webi under infoview (java) or webi rich client...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Frederic Nez on Jan 19, 2010 6:35 PM&lt;/P&gt;&lt;P&gt;(edit : there is mistake in the post : objects are always between [] even if it is not dispay =&amp;gt; change objects to code mode)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485413#M2368189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T17:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485414#M2368190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to write nested IIF expressions? All or does it only evaluate to 1 or 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;IIF(@Prompt('Enter Metric','N',,mono,free) = 1,&lt;/P&gt;&lt;P&gt;@Select(Booked_Amt\Booked_Amt),&lt;/P&gt;&lt;P&gt;IIF(@Prompt('Enter Metric','N',,mono,free) = 2,&lt;/P&gt;&lt;P&gt;@Select(Actual_Sales_Amt\Gross_Sales_Amt),&lt;/P&gt;&lt;P&gt;@Select(Key Figures\ASP_Amt)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 20:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485414#M2368190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T20:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485415#M2368191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you can wirte such expression.&lt;/P&gt;&lt;P&gt;By the way you can alo write a similar expression using a single prompt:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;EXPRESSION&amp;gt;@Prompt('Enter Metric','N:A',{'1':'[Measures].[Measure 1]','2':'[Measures].[Measure 2]','3':'[Measures].[Measure 3]'},Mono,Primary_Key,Not_Persistent)&amp;lt;/EXPRESSION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 16:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485415#M2368191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485416#M2368192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Didier,&lt;/P&gt;&lt;P&gt;it's worked perfectly, &lt;/P&gt;&lt;P&gt;however, when I use the @Select syntax, it doesn't. The results are very odd. it only works if I use the object that has the same definition without the @Select syntax in the query as well. very odd. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also odd is if I use multiple objects defined with @Prompt('Select Metric') in the same query, they all return the same value; ie the results of the frist object. But I get the expected values for each if I run them independently. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bad part is that in the end I can't benefit from the "dynamic measure" because, although the preview in "Query as a web service" displays the correct data... when it's imported into Xcelsius, it returns the user response and not the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these findings true, common or am I missing steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 22:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485416#M2368192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T22:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485417#M2368193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a prompt definition with static values like in may sample you can't use @Select expression.&lt;/P&gt;&lt;P&gt;Again in the sample I provided, the prompt can be interpreted as a case when else, so you can't select multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe I didn't understand what you wan to achieve.&lt;/P&gt;&lt;P&gt;So if you can send concrete samples with screenshot, I can help to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485417#M2368193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485418#M2368194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create 2 Measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sales&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;@Prompt('Enter Metric','N:A',{'1':'[Measures].[D78FBYNBGG6TEDTJW33N7WSBE]','2':'[Measures].[D7884TXUOXY0NSQJI01MOTQAI]','3':'[Measures].[D7884TXUOXWHAK30UX6EJYXQY]','4':'[Measures].[D7884TXUOXZK11E252WUTOIU2]','5':'[Measures].[D7884TXUOY13EA1KS5S2YJBDM]','6':'[Measures].[D78YSRTZS9JELSPBZNAU8DR2Y]','7':'[Measures].[D78YSRTZS9KXZ1CUMQ62D8JMI]'},Mono,Primary_Key,Not_Persistent)&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Units&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;@Prompt('Enter Metric','N:A',{'1':'[Measures].[D78FBYNBGG7L305B7MJ9AC6L6]','2':'[Measures].[D7884TXUOXUXXBFI7UB6F457E]','3':'[Measures].[D78P4ECGEP1S75DZ4JFB0J7TM]','4':'','5':'','6':'[Measures].[D78YSRTZS9K6AF13B6QGAT5CQ]','7':'[Measures].[D78YSRTZS9MHCA0D9T1AI3C62]'},Mono,Primary_Key,Not_Persistent)&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. SalesA (alternative)&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;@Prompt('Enter Metric','N:A',{'1':'@Select(Key Figures\Booked_Amt)','2':'@Select(Key Figures\Gross_Sales_Amt)','3':'@Select(Key Figures\Net_Sales_Amt)','4':'@Select(Key Figures\Std_Margin_Amt)','5':'@Select(Key Figures\ASP_Amt)','6':'@Select(Key Figures\Daily_Booked_Amt)','7':'@Select(Key Figures\Daily_Gross_Sales_Amt)'},Mono,Primary_Key,Not_Persistent)&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query results are&lt;/P&gt;&lt;P&gt;time, Sales                    --&amp;gt; success&lt;/P&gt;&lt;P&gt;time, Units                     --&amp;gt; success&lt;/P&gt;&lt;P&gt;time, Sales, Units           --&amp;gt; success (BUT both objects (Sales and Units) return results for Sales&lt;/P&gt;&lt;P&gt;time SalesA                   --&amp;gt; Fail&lt;/P&gt;&lt;P&gt;time Sales, SalesA        --&amp;gt; success (BUT same results as query for "time, Sales, Units")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above results are in Infoview&lt;/P&gt;&lt;P&gt;When generated as QAAWS and imported into xcelsius, the results are&lt;/P&gt;&lt;P&gt;time, Sales                    --&amp;gt; success (BUT results are user response, ie 1 or 2 or 3... 7 and not the results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the alternative option is to create a webservice for each key figure, ie 7 x 2 (units and sales) = 14, rather than 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 14:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485418#M2368194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T14:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485419#M2368195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned, the case 3 cannot work because you are using @Select in static prompts. Then @Select is not replaced by the object definition but used as a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning your 2 queries, because your prompt question is the same for both queries they will be merged and the same answer will be sent to both queries.&lt;/P&gt;&lt;P&gt;In case of prompt merge only one List of Values is used. So I recommend to use different questions for the prompts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;EXPRESSION&amp;gt;
@Prompt('Enter Metric for Sales','N:A',{'1':'Measures.D78FBYNBGG6TEDTJW33N7WSBE','2':'Measures.D7884TXUOXY0NSQJI01MOTQAI','3':'Measures.D7884TXUOXWHAK30UX6EJYXQY','4':'Measures.D7884TXUOXZK11E252WUTOIU2','5':'Measures.D7884TXUOY13EA1KS5S2YJBDM','6':'Measures.D78YSRTZS9JELSPBZNAU8DR2Y','7':'Measures.D78YSRTZS9KXZ1CUMQ62D8JMI'},Mono,Primary_Key,Not_Persistent)
&amp;lt;/EXPRESSION&amp;gt;
&amp;lt;EXPRESSION&amp;gt;
@Prompt('Enter Metric for Units','N:A',{'1':'Measures.D78FBYNBGG7L305B7MJ9AC6L6','2':'Measures.D7884TXUOXUXXBFI7UB6F457E','3':'Measures.D78P4ECGEP1S75DZ4JFB0J7TM','4':'','5':'','6':'Measures.D78YSRTZS9K6AF13B6QGAT5CQ','7':'Measures.D78YSRTZS9MHCA0D9T1AI3C62'},Mono,Primary_Key,Not_Persistent)
&amp;lt;/EXPRESSION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 14:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485419#M2368195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485420#M2368196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks again Didier for clarifying. Looks very good.&lt;/P&gt;&lt;P&gt;For it to work in Xcelsius I had to use the IIF syntax and that works too, so thank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 16:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485420#M2368196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T16:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485421#M2368197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a dimension as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;IIF ([0MATERIAL__0MATL_GROUP].currentmember ="Consumer",1,0)&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the and error running WebI report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A database error occured. The database error text is: Error in MDDataSetBW.GetCellData.  See RFC trace file or SAP system log for more details. (WIS 10901)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 14:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485421#M2368197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T14:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485422#M2368198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct syntax must be like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;EXPRESSION&amp;gt; IIF ( [0D_MTLGROUP].currentmember.properties("[10D_MTLGROUP]") = "Consumer",1,0) &amp;lt;/EXPRESSION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this sample I use Material_Group characteristic. You need to take the display attribute definition that matches the caption you want to compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485422#M2368198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485423#M2368199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do a grouping as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg I want item # 1,2,3 to be grouped as "Group1", 4,5 as "Group 2" and 6.7.8.9 as "Group 3".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL the universe objects definition would be similar to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF item_num in (1,2,3) then "Group1" Else&lt;/P&gt;&lt;P&gt;IF item_num in (4,5) then "Group2" Else&lt;/P&gt;&lt;P&gt;IF item_num in (6,7,8,9) then "Group3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 16:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485423#M2368199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T16:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: create new object (measure) with IIF function on BW Olap universe:mdx error</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485424#M2368200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned in my previous post I am trying to do a grouping in the universe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have movement type codes that I have to group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "select" of the Movement Type Key (detail object) I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[0MOVE_TYPE].[LEVEL01].[[20MOVE_TYPE]].[Value]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an dimension objects named "Movement Type Group" and in the "select" I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;IIF([0MOVE_TYPE].currentmember.properties("[20MOVE_TYPE]")="101","1","2")&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include the above dimension in a report, the report runs without error, but the Movement Type Group column is empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L01 Movement Type	L01 Movement Type Key	                               L01 Movement Type Name	Movement Type Group&lt;/P&gt;&lt;P&gt;101			101			101	&lt;/P&gt;&lt;P&gt;102			102			102	&lt;/P&gt;&lt;P&gt;161			161			161	&lt;/P&gt;&lt;P&gt;162			162			162	&lt;/P&gt;&lt;P&gt;301			301			301	&lt;/P&gt;&lt;P&gt;303			303			303	&lt;/P&gt;&lt;P&gt;304			304			304	&lt;/P&gt;&lt;P&gt;305			305			305	&lt;/P&gt;&lt;P&gt;306			306			306	&lt;/P&gt;&lt;P&gt;343			343			343	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;IIF([0MOVE_TYPE].currentmember.properties("[20MOVE_TYPE]")="101",1,2)&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works. Does that mean that we canot used characters in the True &amp;amp; False expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can I do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;IIF([0MOVE_TYPE].currentmember.properties("[20MOVE_TYPE]") InList("101","102","161"),1,IIF([0MOVE_TYPE].currentmember.properties("[20MOVE_TYPE]") InList("162","301","303"),2,3)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nikhil Khasnis on Feb 10, 2010 8:57 PM&lt;/P&gt;&lt;P&gt;I changed it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;IIF([0MOVE_TYPE].currentmember.properties("[20MOVE_TYPE]")="101",1,2)&lt;/P&gt;&lt;P&gt;&amp;lt;/EXPRESSION&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works. Does that mean that we canot used characters in the True &amp;amp; False expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 19:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-object-measure-with-iif-function-on-bw-olap-universe-mdx-error/qaa-p/6485424#M2368200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T19:30:44Z</dc:date>
    </item>
  </channel>
</rss>

