on 08-11-2010 1:10 PM
Hi,
I am trying to create a restricted measure in sap olap universe with Orders key figure restricted on 0PLANT and 0MATERIAL objects.i want to restrict on list of 0PLANT (1000,1200,2000) and 0MATERIAL (DPC1009,DPC1010).
I used <EXPRESSION>@Select(Keyfigures\Orders)</EXPRESSION> in select clause,
and restriction on list of values in where clause as below.
<FILTER KEY="[0MATERIAL].[LEVEL01]">
<CONDITION OPERATORCONDITION="InList">
<CONSTANT CAPTION="DPC1009"/>
<CONSTANT CAPTION="DPC1010"/>
</CONDITION>
</FILTER>
but when i used orders restricted measure, report returned no data,actually there is data for this restriction.
can anybody tell me where is this mistake in the above syntax and also how can i add 0PLANT restriction to this syntax.
Thanks,
Harsha
Hi,
In Select clause, write:
<EXPRESSION>@Select(Key Figures\Orders)</EXPRESSION>
In Where clause, write:
<OPERATOR VALUE="AND">
<FILTER KEY="[0MATERIAL].[LEVEL01]">
<CONDITION OPERATORCONDITION="InList">
<CONSTANT CAPTION="DPC1009"/>
<CONSTANT CAPTION="DPC1010"/>
</CONDITION>
</FILTER>
<FILTER KEY="[0PLANT].[LEVEL01]">
<CONDITION OPERATORCONDITION="InList">
<CONSTANT CAPTION="1000"/>
<CONSTANT CAPTION="1200"/>
<CONSTANT CAPTION="2000"/>
</CONDITION>
</FILTER>
</OPERATOR>
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply,
<EXPRESSION>(@Select(Key Figures\Orders),{[0MATERIAL].[DPC1009],[0MATERIAL].[DPC1010]},{[0PLANT].[1000],[0PLANT].[1200],[0PLANT].[2000]})</EXPRESSION>
above syntax expression is giving error when i am running the webi report.
but if i include only one material like
<EXPRESSION>(@Select(Key Figures\Orders),[0MATERIAL].[DPC1009],)</EXPRESSION>
this is working fine.
and other expression with select and where clause is working fine but, the restricted measure is applying filter on entire query so in the report results it is displaying only those materials (DPC1009,DPC1010).
Is there any syntax modification required to create restricted measure using select expression itself, and pls let me know how can i use key object in syntax for eg ([0MATERIAL].[LEVEL01].[[20MATERIAL]].[Value])
like whether i need to use CAPTION,NAME or VALUE in Filter expression when using key object.
Thanks,
Harsha
Hi,
If you have 2 characteristics and more and 2 values and more per characteristic, the syntax is different than the one proposed.
Try this syntax:
<EXPRESSION>Aggregate( { { [0MATERIAL].[DPC1009],[0MATERIAL].[DPC1010] } * { [0PLANT].[1000],[0PLANT].[1200],[0PLANT].[2000] } }, @Select(Key Figures\Orders))</EXPRESSION>
Regards,
Didier
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.