How can I count multiple item variables

Hello guys, I’m getting multiple vms and the host-node as items, now I want to count the equal host-nodes together and how many vms each server has.

Like Server1: 4 ; Server2: 5 ; Server3: 2 …

This can’t be impossible, right? :stuck_out_tongue:

Hey @TurtleDevil,
welcome to the community :tada:

You can use the Function node to use Javascript for more complex calculations. I created some sample data and a function to group by hostNode.

Here is my example workflow. Sharing your workflow with sample data helps us helping you :wink:

1 Like

Wow, Thanks for your help! That was exactly that what I searched for ! :smiley:
Have a nice day!

1 Like