I’m having some doubts regarding the comparison of rows in the same datatable. My object is to compare all rows in the same datatable, but only compare the ones that have the same value in the column 1. If the values match i would like to change the row type to Good(green color) and they didnt match to Neutral(yellow color). Atm i’m reading my excel file saving in a datatable and sorting it by the column I want to make the comparisons from, but after that i’m kinda lost.
Anyone can give me some tips pls.
Thx for the answer. But the thing is, I receive an excel with data, the first column is an ID that can have equal values or not, so I need to compare all first column to see which rows have the same ID value and then I need to compare the rest of the columns to the rows that have that same ID(from the column 1).
In the comparison if in the same column those rows have equal values I wanted to be green and if they are different I want them to become yellow. So in the end i will have a colored table where I can see witch parameters are OK and which ones NOT OK
If there are no match for those I just want the program to jump to the next line until he finds matchs.
After he find matchs on the first column I want to check for each column if the values for those rows are the same or not.
If they are the same I wante the cell to become green and if they aren’t the cell will be colored as yellow.
Regarding the N/A I would like to create an option that when the N/A is analysed it’s just ignored because that specific document doesn’t have that value.
i attached a sample workflow.
the logic is: you do a loop in all rows of the datatable and try to Select all faulty rows (ID to be the same but the other columns to have different values). if the Select operations returns at least 1 it means it should be flagged as wrong.
The attached sample does not contain the coloring part and it does the check only for column “B”. but I think it might be a start… Main.xaml (8.4 KB)