Cube GetRules
Retrieves a rules XML document of a specified OLAP cube.
Request
<Alea:Document xmlns:Alea="http://www.misag.com">
<Alea:Request RequestID="001" Class="Cube" Method="GetRules">
<Alea:Cube Name="ANALYSIS"/>
</Alea:Request>
</Alea:Document>
Answer
<Alea:Document xmlns:Alea="http://www.misag.com">
<Alea:Request RequestID="001">
<Alea:Return>
<Alea:Rules xmlns:Alea="http://www.misag.com" Time="Aug/24/2017 11:23:49,226" User="admin" Accelerated="false">
<Alea:Rule Enabled="true" Cells="All" Type="Cube" RuleID="000000000000">
<Alea:Target>[MEASURE:'Gross Margin']</Alea:Target>
<Alea:Formula>[MEASURE:'Net Revenue']-[MEASURE:'Cost of Sales']-[MEASURE:'Production Costs']
</Alea:Formula>
</Alea:Rule>
<Alea:Rule Enabled="true" Cells="All" Type="Cube" RuleID="0X0000C00000">
<Alea:Target>[MEASURE:'Net Revenue']</Alea:Target>
<Alea:Formula>[MEASURE:'Revenue']-[MEASURE:'Discounts']-[MEASURE:'SD']</Alea:Formula>
</Alea:Rule>
<Alea:Rule RuleID="0X0001800000">
<Alea:Target>[MEASURE:'Discount in percent']</Alea:Target>
<Alea:Formula>[MEASURE:'Discounts']/[MEASURE:'Revenue']</Alea:Formula>
</Alea:Rule>
<Alea:Rule RuleID="0X0002400000">
<Alea:Target>[MEASURE:'Gross Margin in percent']</Alea:Target>
<Alea:Formula>[MEASURE:'Gross Margin']/[MEASURE:'Revenue']</Alea:Formula>
</Alea:Rule>
<Alea:Rule RuleID="0X0003000000">
<Alea:Target>[MEASURE:'Net revenue per unit']</Alea:Target>
<Alea:Formula>[MEASURE:'Net Revenue']/[MEASURE:'Units']</Alea:Formula>
</Alea:Rule>
<Alea:Rule RuleID="0X0003C00000">
<Alea:Target>[MEASURE:'Price']</Alea:Target>
<Alea:Formula>[MEASURE:'Revenue']/[MEASURE:'Units']</Alea:Formula>
</Alea:Rule>
</Alea:Rules>
</Alea:Return>
</Alea:Request>
</Alea:Document>