We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

If statement help

Codedtech
5 - Atom

I have a 57K row dataset that resembles this

UserDomainAssetType
User1Domain1laptop
User1Domain1laptop
User2Domain2desktop
User3Domain1virtual
User4Domain3laptop
User1Domain2desktop

I'm tying to find a way to create a column that will tell me if a user has an asset on the same domain and if those assets are the same.  
Like this if User1 and  Domain1 and Asset Type are the same the new field would be True. 

5 REPLIES 5
Bren_Spill2
12 - Quasar
12 - Quasar

@Codedtech - how about something like the attached?

Codedtech
5 - Atom

That's a cool solution, but it's not what I need.  This gives me an entry for each line, like User1 has 1Asset on domain1.  I actually need the output to be True or False if user domain and asset type are the same.

Bren_Spill2
12 - Quasar
12 - Quasar

@Codedtech - see attached

ChrisTX
16 - Nebula
16 - Nebula

Use a Summarize tool.  Group by User and Domain and AssetType, count AssetType.  The use a Filter: Count_AssetType >= 2

 

Chris

cjaneczko
13 - Pulsar

Here is one way to do it. Create an index field of 1 then use a summarize tool to sum all the "Grouped" fields. Use another formula tool where any of the Sums are greater than 1 is 'True' and anything = 1 is False. Join it back to the original data set.

 

image.pngimage.pngimage.png

Labels
Top Solution Authors