columns get mixed up when creating bar chart or group by

Are you able to share the data and the workflow? If you are we might take a look. These things come to mind:

  • i would recommend doing a group by on the columns in question to see if they really do not contain the unwanted data (if they do the problem is with the import)
  • you mentioned you had to use “short line” to import the data. CSV files can be tricky i a separating character also appears in the data itself. KNIME sometimes is seemingly not so great in handling that.
  • from the screenshot there seem to be quotes and maybe even cascaded quotes in your data, this could easily mess up the columns on import
  • you could try doing the import with the R package Readr *1) or you could try the File Reader of KNIME instead of the CSV reader *2) - they give you more control about how to import data
  • if you can get the data via a more stable format then CSV you might want to use that

*1)

*2) KNIME Learning Center | KNIME