Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
On the left side the scores with some negative values and on the right side
the modified results if I use fabs( sum(score)/count(name)) or RangeAvg(fabs(score)).
How can I keep the scores unchanged and also show the average value of them in my expression?
You don't mentioned the place and context in which the values/results should be displayed. Therefore various approaches are thinkable, for example:
- Marcus
You don't mentioned the place and context in which the values/results should be displayed. Therefore various approaches are thinkable, for example:
- Marcus
Use fabs() inside sum()
sum(fabs(score))/count(name)
Regards,
Thanks @marcus,
both suggestions, dual( ) & dimensionality() worked as desired in my table.
Is there a possibility to adjust the results according to the weighted factor of +/- signs?
For example: avg (-3, -7) = 5 and sum(-3,-7) = -10.
Since the negative sign is overweighing, -5 might be adopted as "adjusted" average.
I'm not sure what you mean with an adjusted average but both in the origin question mentioned methods may be adaptable for it - means: sum() / count() and/or rangeavg() - directly or combined with an aggr(), maybe like:
avg(aggr(sum() / count() , Dim1, Dim2))
or
rangeavg(aggr(only(Value), Value))
- Marcus