Group by, excel pivot table

Hi all,

please check my screenshots:

I have an Excel input file with a lot of columns:

image

I would like to group the data from the excel file, like in a pivot table: So in this case group by columns “sachkto”; “prct”; “coauftrag” and “zuordnun” and show the sum “fw_brutto”

image

image

I think I need the node “group by”, but I am not sure how and where to set the correct configurations in the node to make it work.

Can anyone give advice? Thank you very much.

BR
Markus

@Markus3003 there actually is a node for Pivoting. Maybe you give it a try:

4 Likes

Hi,

you just need to use a “Group By” node:

Put you row identifiers in the first configuration dialog (Groups).
Than open the manual aggregation dialog and insert the variable you want to sum up.
You should also change the aggregation function from “mean” (default option) to “sum”.
Be sure that the column "fw_brutto” is numerical otherwise KNIME will not allow you to use the “sum function”.

I hope it will help

1 Like

Hi @Markus3003,
based on your excel pivot table setting, i think group by node should do the job as you assumed.

Use the columns you’ve selected for “Zeilen” as Group column(s) and for Manual aggregation your fw_brutto column with aggregation sum.

BR

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.