[Mondrian] average percentage values with visual totals/totals

Julian Hyde jhyde at pentaho.com
Mon May 13 14:21:07 EDT 2013


Maybe you could calculate a 'count' and 'sum' member using VisualTotals, and then divide them.

Julian


On May 13, 2013, at 4:57 AM, Ati Rosselet <ati.rosselet at gmail.com<mailto:ati.rosselet at gmail.com>> wrote:

oops... sent too soon.. sorry.
No..  here we calculate inline as part of the "with" statement. e.g.:

member [Account].[LSYH].[Project %] as '([Account].[LSYH].[Direct result] / [Account].[LSYH].[Revenues])', FORMAT_STRING = "0.0%"

other values in the rows are plain numbers, so their summing into VT is perfectly ok.
Any Ideas?


On Mon, May 13, 2013 at 1:52 PM, Paul Stoellberger <p.stoellberger at gmail.com<mailto:p.stoellberger at gmail.com>> wrote:
Is the measure you are talking about an AVG aggregator value? Meaning the percentages are stored as numbers in the fact table and then you create an AVG measure on top of that?
If so VisualTotals() should calculate it fine, in the end its just calling Aggregate() on the children

If not, schema / MDX would help

-Paul

On May 13, 2013, at 1:28 PM, Ati Rosselet <ati.rosselet at gmail.com<mailto:ati.rosselet at gmail.com>> wrote:

> Hi,
> We are using visual totals in out mdx, but have an element which is a percentage value, and which we would like to show as avg  of the visible percentages as opposed to sum (I can't offhand think of a situation where one would want to SUM percentages... ).
>
> Is there any way of getting visual totals to avg certain elements as opposed to summing them?  Or any suggestion as to how this could be set up?
> Thanks
> Ati
> _______________________________________________
> Mondrian mailing list
> Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>
> http://lists.pentaho.org/mailman/listinfo/mondrian

_______________________________________________
Mondrian mailing list
Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>
http://lists.pentaho.org/mailman/listinfo/mondrian

_______________________________________________
Mondrian mailing list
Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>
http://lists.pentaho.org/mailman/listinfo/mondrian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20130513/efbc2e2f/attachment.html 


More information about the Mondrian mailing list