Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Populate Column values if there is a mismatch - workaround

Rahul_Shetty
5 - Atom

Hi All,

 

Is there a quick way to populate the column name if the value is a mismatch in any of the columns?

Thanks.

 

Example data below - 

 

input - 

 

RCEPGPCETABCDEFGHIJK
ABABCAllDe0.7 0.70.70.70.70.250.7  0.7
ABABCAllDe0.7 0.70.70.70.70.250.7  0.7
ABDEFAllDe      0.250.7  0.7
ABDEFAllDe0.4  0.40.40.40.25  0.40.4
ABDEFAllDe0.4  0.40.40.40.25  0.40.4
DBAEFGAllDe4  4444.5  44
DBAEFGAllDe4   444.5  44
DBAEFGAllDe4  4444.5  44
 

 

 

output - 

 

RCEPGPCETABCDEFGHIJKValues
ABABCAllDe0.7 0.70.70.70.70.250.7  0.7G
ABABCAllDe0.7 0.70.70.70.70.250.7  0.7G
ABDEFAllDe      0.250.7  0.7G
ABDEFAllDe0.4  0.40.40.40.25  0.40.4G
ABDEFAllDe0.4  0.40.40.40.25  0.40.4G
DBAEFGAllDe4  4444.5  44G
DBAEFGAllDe4   444.5  44G
DBAEFGAllDe4  4444.5  44G
5 REPLIES 5
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

@Rahul_Shetty 

Could you elaborate the definition of "mismatch in any of the columns"?

The [Values] column in your output shows "G" for all rows, but I see many other mismatches.

Rahul_Shetty
5 - Atom

Mismatch is when the values in columns A to K don't have unique row values. For example 0.25 and 4.5 are mismatch values.

flying008
15 - Aurora

Hi, @Rahul_Shetty 

 

FYI.

 

 

IIF(!IsEmpty([Row-1:Value] + [Value]) && [Row-1:Value] != [Value] && [Row-1:Value] = [Row+1:Value], [Name], Null())

 

 

 

录制_2025_02_28_09_57_14_708.gif

Rahul_Shetty
5 - Atom

Hi @flying008,

 

Is it possible for you to share the workflow?

 

Thanks.

 

 

flying008
15 - Aurora

Hi, @Rahul_Shetty 

 

BTW, Due to security policy restrictions, I am unable to upload any workflow files, so please watch the animation and try it yourself.

 

录制_2025_02_28_13_54_34_768.gif

 

RCEEPGPCETABCDEFGHIJKField
ABABCAllDe0.7 0.70.70.70.70.250.7  0.7G
ABABCAllDe0.7 0.70.70.70.70.250.7  0.7G
ABDEFAllDe      0.250.7  0.7G
ABDEFAllDe0.4  0.40.40.40.25  0.40.4G
ABDEFAllDe0.4  0.40.250.40.4  0.40.4E
DBAEFGAllDe4  4444.5  44G
DBAEFGAllDe4   444.5  44G
DBAEFGAllDe4  4444.5  44G
Labels
Top Solution Authors