Is there any way I can get percentage value from example below.
Name
Class
Score
Ariel
Math
85
Ariel
Physics
60
Ariel
Chemistry
75
Ariel
Biology
80
Ricky
Physics
95
Ricky
Sports
55
Ricky
English
80
Jacob
France
85
Jacob
Chemistry
95
Assuming each student will have different class and the percentage is vs name column. Basically % score to Name is for each student (example, Ariel %Math is 85/(total score in all of her class) to get results as below and so on for each student name.
roland’s solution looks just fine. You should change the groupby aggregation column from “Class” to “Name”. Besides, I would always change the format of a field in the output file. Within KNIME you can use Right-click “Available renders” (table view on the column header) → “Percentage”.
My workflow looks like this (identical to roland’s approach)…
As far as i can remember the math formula node was also able to calculate the column sum so you might be able to calculate the result with only one node (can’t access KNIME to test right now)
br