Skip to content
Advertisement

Pivot table with multiple aggregate value

I am trying to pivot below table, is that possible?

But if I aggregate them by Code, Value A or B will be gone because of it.

From

Name Code Value
Kevin Code1 A
Kevin Code1 B
Kevin Code2 C
Kevin Code3 D
Tom Code1 E
Tom Code2 F
Tom Code3 G

To

Name Code1 Code2 Code3
Kevin A C D
Kevin B C D
Tom E F G

Query I tried….

Tried myself but I can only achieve below

Name Code1 Code2 Code3
Kevin A or B(depend on aggregated max or min) C D
Tom E F G

Thanks in advance

Advertisement

Answer

This is a fixed column list version. You should build your dynamic one using this template.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement