Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi I have brands and products in the dimension of the table. I want to take the average of their score in the pivot table:
Brand Name | Product Name | Score | avg |
---|---|---|---|
Brand 1 | Product 1 | 100 | 250 |
Brand 1 | Product 2 | 200 | 250 |
Brand 1 | Product 3 | 300 | 250 |
Brand 1 | Product 4 | 400 | 250 |
I want to make the table as shown above when the dimensions are all expanded. When I collapse the product name field, it works well but when I expand it, it will show the exact value of the score on the avg field.Can you help me doing this?
Thank you
Try
Avg({1}TOTAL Score)
Hi,
Please find attached file, it will help you.
- Regards,
Vishal Waghole
Brand Name | Product Name | Score | Avg |
---|---|---|---|
Brand 1 | Prod 1.1 | 100 | 150 |
Brand 1 | Prod 1.2 | 200 | 150 |
Brand 2 | Prod 2.1 | 300 | 400 |
Brand 2 | Prod 2.2 | 500 | 400 |
I forgot to mention that there are other brands in the table. Therefore I need to calculate all the brands' average individually.
Write in new expression for pivot table
Avg({1} ALL Score)
Hi Anand. It calculates the avg of the score of all brands but I need to take the average of only the corresponding brand.
Try
AVG({1}TOTAL <[Brand Name]> Score)
or
AVG({TOTAL <[Brand Name]> Score)
Ok then try like
Avg(ALL <[Brand Name]> Score)
Hi thanks for help. These expressions work but only when the product field is collapsed. When I expand the dimensions the avg(score) equals to the sum(score).