Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi..,
Fruitshop
FruitName
Share
Date
shop1
apple
30
2/12/2009
grape
20
pineapple
9
banana
16
23
3/12/2009
12
37
10
we hav data for 4shops.we need to calculate average of each fruit of each shop of particular date range(which will be captured dynamically by the user).If user selects 2/12/09 to 3/12/09 date range,then the average will be lik this for shop1.
fruitname apple grape pine apple banana
avg_share 26.5 16 23 13
avg_share=aggr(avg({<Date Range>}Share),FruitName,Fruitshop)
so i hav to get the table as
shop2
ShareOf
No.of fruit types
%total
0-20%
2
50%
null
20-40%
40-60%
60-80%
80-100%
Grand total
4
100%
"ShareOf" is a calculated dimension.
The problem is in calculating "%total".
If i am using expression for %total =aggr(sum({<Date Range>}FruitName),FruitShop) the result is lik
plz suggest us ....