How to allocate by percentage in KNIME

Good day!

Freshman here and I’m hoping you could help me with below query.

I have two inputs:

image

image

And I want to allocate Input 1 and add it to Input 2 by percentage of the latter.

Therefore, my desired output should have the allocation of Input 1 plus Input 2:
image

I also tried GroupBy node and tried to put Group 1 and Group 2 in the “Group Columns” and did Sum as manual aggregation for values but I’m not sure what to do next to get the percentages and add the columns together.

Hopefully, this makes sense. I have also attached the workbook for clarity.

Query Allocation.xlsx (12.6 KB)

Appreciate any help!

Hi Ana,

Check this out: KNIME_project12.knwf (17.1 KB)

GL,
Mehrdad

5 Likes

Sweet – thank you, Mehrdad_bgh! Appreciate sending the workflow as well. It got exactly the output!

3 Likes

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