Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hola! Favor su ayuda con este problema. Cómo puedo, en una tabla pivot, hacer referencia por cada fila al código del cliente para obtener la misma fórmula que al filtrar cada uno de los clientes.
Así se ve la tabla cada vez que filtro un cliente, mostrando las ventas de los otros clientes que coinciden con su categoría
Customer | sum(#Kilos) | Sum({<Category=P({<[Customer Code]={"(A)"}>}Category)>}Total_sales) |
Customer A | 10.000 | 10.000 |
Customer B | 0 | 10.000 |
Customer C | 0 | 15.000 |
Customer D | 0 | 3.000 |
Total | 10.000 | 38.000 |
Customer | sum(#Kilos) | Sum({<Category=P({<[Customer Code]={"(B)"}>}Category)>}Total_sales) |
Customer A | 0 | 5.000 |
Customer B | 20.000 | 20.000 |
Customer C | 0 | 25.000 |
Customer E | 0 | 3.000 |
Total | 20.000 | 53.000 |
Customer | sum(#Kilos) | Sum({<Category=P({<[Customer Code]={"(C)"}>}Category)>}Total_sales) |
Customer A | 0 | 8.000 |
Customer B | 0 | 15.000 |
Customer C | 30.000 | 30.000 |
Customer F | 0 | 3.000 |
Total | 30.000 | 56.000 |
Lo que necesito es que sin filtrar clientes, en cada fila me sume el total de ventas de cada cliente que coincide con sus categorías.
Customer | sum(#Kilos) | Sum(Category=P({<[Customer Code]={"(A|B|C|D|E|F)"}>}Category)>}Total_sales) | |
Customer A | 10.000 | 38.000 | Sum({<Category=P({<[Customer Code]={"(A)"}>}Category)>}Total_sales) |
Customer B | 20.000 | 53.000 | Sum({<Category=P({<[Customer Code]={"(B)"}>}Category)>}Total_sales) |
Customer C | 30.000 | 56.000 | Sum({<Category=P({<[Customer Code]={"(C)"}>}Category)>}Total_sales) |
Total | 60.000 | 147.000 |
Se agradece cualquier tipo de idea para obtener el resultado, muchas gracias!!