I have an excel file as input where there are N number of rows with party_id and 6 other attributes. This is linked to one sub workflow where we get the number of rows we need to pull(it could be 50,60,70 or any other values. Here we need to pull dynamically rows(lets take 54 but it can differ), where maximum records should come from col1 and col2 where non null values are present for these columns, then col3 and col4, and last col5 and col6. Hence, in this case, 17 records came from col1, 15 records from col2, 8 records from col3, 6 records from col4, 4 records from col5 and 4 records from col6. Need an alteryx workflow solution to dynamically handle this.
Priority of attributes decrease as we go down:
P1: col1 and col2
P2: col3 and col4
P3: col5 and col6
Sample data for reference.
Party id, col1, col2, col3, col4, col5, col6
12345, val1, val2, val3, val4, val5, val6
23456,null,null,val03,val04,null,val06