Alteryx Designer Desktop Discussions

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

Remove Duplicate and assign data into single row

Rahul6777
7 - Meteor

Hi Team,

Please see the below mention scenario, I have provided the dummy data as well for reference.

In my scenario, there is flat associated with each ID based on the category (Flag it true or False). We have a category in row that is why flag is giving true or false value.

 

Eg. If contain (category, Active) then flag 1 and Flag2 is true elsif contain (category, Miscellaneous)

Then flag 3 and flag 4 is true so on.

 

 Now I want a single row for each ID and their respective flag data into a single row to remove the company and ID duplicity.

 

INPUT DATA
IDCompanyCategoryFlag1Flag2Flag3Flag4Flag5Flag 6Flag7
KJFDBC1234ABC1ACTIVETRUETRUEFALSEFALSEFALSEFALSEFALSE
KJFDBC1234ABC1miscellaneousFALSEFALSETRUETRUEFALSEFALSEFALSE
KJFDBC1234ABC1directoryTRUETRUEFALSEFALSETRUEFALSEFALSE
GHJHD5679Company2HyperFALSEFALSEFALSEFALSEFALSETRUEFALSE
GHJHD5679Company2ActiveFALSEFALSEFALSEFALSEFALSEFALSETRUE
          
Output Data
IDCompanyCategoryFlag1Flag2Flag3Flag4Flag5Flag 6Flag7
KJFDBC1234ABC1ACTIVE, miscellaneous, directoryTRUETRUETRUETRUETRUEFALSEFALSE
GHJHD5679Company2Hyper, ActiveFALSEFALSEFALSEFALSEFALSETRUETRUE
7 REPLIES 7
Raj
16 - Nebula

Please find the sol attached 
Hope this help

Yoshiro_Fujimori
15 - Aurora

Hi @Rahul6777 ,

 

If you want to set True for a company for a flag with at least one "True", you can simply use "Max" in Summarize tool.

I hope it helps.

 

Workflow

Yoshiro_Fujimori_0-1686897329361.png

Summarize tool configuration

Yoshiro_Fujimori_2-1686897375632.png

 

Output

Yoshiro_Fujimori_1-1686897344629.png

 

Rahul6777
7 - Meteor

The True and False value in Boolean so not able to concat the field in summarized tool.

Yoshiro_Fujimori
15 - Aurora

@Rahul6777 , 

You may want to use "Max" instead of "Concatenate".

 

From my observation, Alteryx regards True is "larger than" False.

So if you set "Max",

you will get True where the group contains at least one True,

and get False where the group contains only False.

Rahul6777
7 - Meteor

Thank You for the reply, I will implement the same and let you if any issue occur.

Rahul6777
7 - Meteor

Hi Raj, It can contain true or false both based on category value can you please help to send logic for true and false.

Rahul6777
7 - Meteor

Thank You @Yoshiro_Fujimori  and @Raj for the help. 

Labels