The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED] Question to "sum" aggregation when Pivoting
MacPhotoBiker
Member Posts: 60 Contributor II
in Help
Hi,
I'm trying to create a rather simple Pivot Table using the "Pivoting" operator.
Let's say this is the raw data:
(Note: I initially posted the wrong raw numbers in the third row, but it's corrected now.)
The Pivot operator is configured as follows:
Group Attribute: Customer
Index Attribute: Article
Weight Aggrecation: sum
When I run the process, I get this result:
However, I would have expected this:
Could somebody help me to understand what I'm doing wrong?
I'm trying to create a rather simple Pivot Table using the "Pivoting" operator.
Let's say this is the raw data:
Customer | Article | Amount | Quantity |
C1 | A1 | 100 | 10 |
C1 | A1 | 150 | 15 |
C1 | A2 | 200 | 20 |
The Pivot operator is configured as follows:
Group Attribute: Customer
Index Attribute: Article
Weight Aggrecation: sum
When I run the process, I get this result:
Customer | Amount_A1 | AmountA2 | Quantity_A1 | Quantity_A2 |
C1 | 150 | 200 | 15 | 20 |
Customer | Amount_A1 | AmountA2 | Quantity_A1 | Quantity_A2 |
C1 | 250 | 200 | 25 | 20 |
0
Answers
the pivot operator does not aggregate data values. Just weights are aggregated thus the name attribute name weighte aggregation.
What you want to use is the Aggregate operator: Best,
Nils
thank you very much for clarifying. You are right, the operator clearly states "weight aggregation".
All works well now, I simply added the aggregation operator before pivoting, and I'm getting the correct results.
Thanks for helping out!