Tableau incorrect average field value on drill up level

129 Views Asked by At

I am very much new for tableau and working on a report in tableau with two level drill-down. I have three fields named 'Sales' and 'Quantity' and 'Avg-Price'. I need the correct value of 'Avg-Price' (?) when I drill-up on company level. See below picture

enter image description here

For field 'Avg-Price', I use 'CalculatedField' with formula '[Sales]/[Quanity]'.

Any suggestion?

1

There are 1 best solutions below

2
Alex Blakemore On

Try

SUM([Sales]) / SUM([Quantity])