Cube PutRules

Sets the rules for the specified cube. All existing rules in the cube are deleted before the new rules are set.

Request

<Alea:Document xmlns:Alea="http://www.misag.com">
  <Alea:Request RequestID="1209" Class="Cube" Method="PutRules">
    <Alea:Cube Name="ANALYSIS">
      <Alea:Rules Accelerated="false">
        <Alea:Rule Enabled="true" Cells="All">
          <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">
          <Alea:Target>[MEASURE:'Net Revenue']</Alea:Target>
          <Alea:Formula>[MEASURE:'Revenue']-[MEASURE:'Discounts']-[MEASURE:'SD']</Alea:Formula>
        </Alea:Rule>
        <Alea:Rule Enabled="true" Cells="All">
          <Alea:Target>[MEASURE:'Discount in percent']</Alea:Target>
          <Alea:Formula>[MEASURE:'Discounts']/[MEASURE:'Revenue']</Alea:Formula>
        </Alea:Rule>
        <Alea:Rule Enabled="true" Cells="All">
          <Alea:Target>[MEASURE:'Gross Margin in percent']</Alea:Target>
          <Alea:Formula>[MEASURE:'Gross Margin']/[MEASURE:'Revenue']</Alea:Formula>
        </Alea:Rule>
        <Alea:RuleGroup Enabled="true">
          <Alea:Name>Example rule group</Alea:Name>
          <Alea:Description />
          <Alea:Rule Enabled="true" Cells="All">
            <Alea:Target>[MEASURE:'Net revenue per unit']</Alea:Target>
            <Alea:Formula>[MEASURE:'Net Revenue']/[MEASURE:'Units']</Alea:Formula>
          </Alea:Rule>
          <Alea:Rule Enabled="true" Cells="All">
            <Alea:Target>[MEASURE:'Price']</Alea:Target>
            <Alea:Formula>[MEASURE:'Revenue']/[MEASURE:'Units']</Alea:Formula>
          </Alea:Rule>
        </Alea:RuleGroup>
      </Alea:Rules>
    </Alea:Cube>
  </Alea:Request>
</Alea:Document>

See the "XML rules handling" section for a description of parameters and their values.

Answer

<Alea:Document>
  <Alea:Request RequestID="1209">
    <Alea:Return />
  </Alea:Request>
</Alea:Document>