How can one create percentage fields with a cube?
I know how to do averages and sums, but calculating
the percentage of an object is elluding me.
For example I have the following table
table 1
a b c d
a2 b2 c2 d2
a3 b3 c3 d3
I want to create a cube that will look something like this
where %d is the % of d out of all the d's for that section
of the cube... I am not sure if I am explaining
myself well, for which I apologize.
Any hint would be appreciated
thanks
ds
I know how to do averages and sums, but calculating
the percentage of an object is elluding me.
For example I have the following table
table 1
a b c d
a2 b2 c2 d2
a3 b3 c3 d3
I want to create a cube that will look something like this
Code:
select a,b,c,count(*),sum(d),%d
from table_1
group by
a,b,c
with cube
where %d is the % of d out of all the d's for that section
of the cube... I am not sure if I am explaining
myself well, for which I apologize.
Any hint would be appreciated
thanks
ds