Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic Input for Unique

hcho
8 - Asteroid

I've been exploring the CreW macro (source: http://www.chaosreignswithin.com/p/macros.html) that returns only unique entries, and I'm looking to build a macro that incorporates this CreW macro with dynamic input.

 

I want the workflow to accept two inputs:

  1. Target Field Names File: A comma-separated list of field names (could be one or multiple).
    • Field
      FirstName,LastName
  2. Data File: The dataset in which these fields are located.
    • IndustryFirstNameLastNameAgeYearsOfEducationYearsAtCurrentJobSalary
      CommunicationRonaldDryer4316583000
      ManufacturingAngelinaPrissant3318487000
      ManufacturingTaraJackson2812635000
      CommunicationKeithJacobs5614863000
      ManufacturingTerrenceMcKinley2618280000
      ManufacturingWilmaHolmes63161277000
      CommunicationMarkHodges4612234500
      SoftwareDanielleRodriguez29221108000
      SoftwareMichaelLawrence5316793000
      SoftwareMichaelLawrence53167930
      SoftwareChristinaKim3216488000
      SoftwareChristinaLi3216488000

 

Expected output (in this example):

  • SoftwareMichaelLawrence5316793000
    SoftwareMichaelLawrence53167930

 

I have created and attached a method using the regex tool, but I realized this doesn't work when the input file changes.

 

Could anyone advise on the best approach to achieve this in Alteryx? I’d appreciate any guidance on dynamically incorporating the target fields and efficiently identifying duplicates with the macro.

1 REPLY 1
hcho
8 - Asteroid
Labels
Top Solution Authors