Looking at renaming/creating and then populating an entire column based on condition fulfilled for any row.
What I have:
Name | Value |
Tom | A |
Sally | B |
Nick | A |
Basically, I want to create a new column (Condition) where the entire column will be populated with "True" if any of the rows have the value "B", while if all the rows values' are "A", the entire Condition column will be "False"
Ideal Output:
Name | Value | Condition |
Tom | A | True |
Sally | B | True |
Nick | A | True |
Thanks in advance!
Solved! Go to Solution.
Hi @NgYingXue
There are probably better solutions. But I came up with this one:
- Add a Formula to assign a single value for all the Rows (I assigned RecordID as 1)
- Summarize tool grouping by Record ID and concatenating all Values
- Use a Formula tool to apply the condition:
IF Contains([Concat_Value], "B") THEN "True"
ELSE "False" ENDIF
- Join the Condition field back to the original dataset
WF attached.
Cheers,