4 # Vendida TOTAL LOJA is the total quantity grouped by Loja
5 % Vendida Loja / Total is the total quantity sold of each Loja divided by Total Quantity Sold (24.377.848,14) - Means the participation of each Loja (store) from all sales (# Vendida)
6 # Estoque is the stock quantity
7 # Antigo Est. Padrão is the "default" stock quantity of each Loja should have
8 # Antigo Est. Padrão TOTAL PROD is the total of the prior column grouped by Produto
9 % Antigo Est. Padrão PROD / TOTAL is the value of # Antigo Est. Padrão divided by the Total grouped by Produto
But I need a chart grouped by Loja counting each time the column 10 %Var is bigger than 5.
I got errors like "nested aggregation not allowed". So I changed every formula to use aggr instead and the table is correctly again. But I can not get the chart to work.
How can I show a chart (pie) with only one dimension (Loja) and a metric showing the total number of times where the column 10 formula is greater than 5 (500%)?