Hi,<br><br>Can&#39;t seem to be able to use VisualTotals. Can you provide a sample?<br>Thank&#39;s<br>Rui<br><br><div class="gmail_quote">On Mon, Sep 7, 2009 at 2:24 PM,  <span dir="ltr">&lt;<a href="mailto:tom@wamonline.org.uk">tom@wamonline.org.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<a href="http://msdn.microsoft.com/en-us/library/ms145527.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms145527.aspx</a><br>
<br>
VisualTotals is probably what you are looking for.<br>
<br>
Tom<br>
 <br>
<br>
<span style="font-weight: bold;">On Mon  7/09/09  1:27 PM , Rui Gonçalves <a href="mailto:rui.pinho.goncalves@gmail.com" target="_blank">rui.pinho.goncalves@gmail.com</a> sent:<br>
</span><blockquote style="border-left: 2px solid rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px; padding-right: 0px;"><div class="im">


<p>Hi All,</p>

<p> </p>

<p>I’m relatively new to Mondrian and Jpivot .</p>

<p>I would like to have a calculated total for hierarquies and level’s.</p>

<p>Example:</p>

<p>select NON EMPTY {[Measures].[Quantity]} ON COLUMNS,<br>

  NON EMPTY Hierarchize(Union({[Product].[All Products]}, [Product].[All Products].Children)) ON ROWS<br>

from [SteelWheelsSales]<br>

</p>
<p><br>

</p>Output: <br>
</div><table border="0" cellpadding="2" cellspacing="1"><tbody>
<tr>
<th nowrap><br>
</th>
<th nowrap><img src="" alt="Blocked image">Measures</th></tr>
<tr>
<th nowrap><img src="" alt="Blocked image">Product</th>
<th nowrap><input title="Natural Order" name="wcf35991a80" type="image" width="9" border="0" height="9"><img src="" alt="Blocked image">Quantity</th>
</tr><td><div class="im">
</div><tr>
<th nowrap>
<div style="margin-left: 0em;"><input title="" name="wcff19b7854" type="image" width="16" border="0" height="16">All Products</div></th>
<td nowrap>105.331</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcfffa64ca" type="image" width="16" border="0" height="16">Classic Cars</div></th>
<td nowrap>35.552</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcf44ed35ef" type="image" width="16" border="0" height="16">Motorcycles</div></th>
<td nowrap>12.708</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcf6992b59c" type="image" width="16" border="0" height="16">Planes</div></th>
<td nowrap>11.860</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcfeaa422cc" type="image" width="16" border="0" height="16">Ships</div></th>
<td nowrap>8.499</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcf4a359c9" type="image" width="16" border="0" height="16">Trains</div></th>
<td nowrap>2.818</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcf525dad6c" type="image" width="16" border="0" height="16">Trucks and Buses</div></th>
<td nowrap>11.001</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcf5b7c05de" type="image" width="16" border="0" height="16">Vintage Cars</div></th>
<td nowrap>22.893</td></tr></td></tbody></table><div class="im"><p><br>
</p>In this sample, the total for the product column is the same as the value for [Product].[All Products]<br>
<p></p>
<p><br>
</p><p>If the user wishes to select only some of the &quot;products&quot; in the hierarquie:</p><p><br>
</p><p>For Example:<br>
</p><p>
select NON EMPTY {[Measures].[Quantity]} ON COLUMNS,<br>
  NON EMPTY {[Product].[All Products], [Product].[All Products].[Classic Cars], [Product].[All Products].[Vintage Cars]} ON ROWS<br>
from [SteelWheelsSales]<br>
</p><p>
<br>
</p><p>The Output is:<br>
</p></div><table border="0" cellpadding="2" cellspacing="1"><tbody>
<tr>
<th nowrap><br>
</th>
<th nowrap><img src="" alt="Blocked image">Measures</th></tr>
<tr>
<th nowrap><img src="" alt="Blocked image">Product</th>
<th nowrap><input title="Natural Order" name="wcf9416e090" type="image" width="9" border="0" height="9"><img src="" alt="Blocked image">Quantity</th>
</tr><td><div class="im">
</div><tr>
<th nowrap>
<div style="margin-left: 0em;"><input title="" name="wcf9d75b0ae" type="image" width="16" border="0" height="16">All Products</div></th>
<td nowrap>105.331</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcfba75fce3" type="image" width="16" border="0" height="16">Classic Cars</div></th>
<td nowrap>35.552</td></tr>
<tr>
<th nowrap>
<div style="margin-left: 1em;"><input title="" name="wcf7931ef63" type="image" width="16" border="0" height="16">Vintage Cars</div></th>
<td nowrap>22.893</td></tr></td></tbody></table><div class="im"><p><br>
</p><p>And the total for this column will be 58.445 (Classic Cars + Vintage Cars)<br>
</p><p><br>
</p>
<p> </p><p>I would like to know if it&#39;s possible to create a calculated column (or some other thing) that computes the total for whatever slices are selected by the user in a hierarquie. Is it possible to do it using running totals? If so could you advise how?<br>


</p><p><br>
</p>

<p>I need this total value to use it in some more calculations,
like some percentages and so on.</p>

<p><br>
</p><p><br>
</p>

<p>The really nice solution would be to have a way to tell Mondrian
to calculate a total for the (displayed values in a) [Dimension].[Hierarquie]</p>

<p> </p><p><br>
</p><p>Thank&#39;s<br>
</p><p>Regards,</p><p>Rui<br>
</p>



</div></blockquote><br><br>_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br></blockquote></div><br>