Alteryx Designer Desktop Discussions

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

How to Simplify Repeating Workflow

hcho
7 - Meteor

Hello Alteryx Community,

 

I've built a workflow that processes datasets to filter out invalid data based on specific requirements. 

While the workflow functions as intended for small datasets, I'm aiming to make it more flexible and reusable by addressing the following points:

  1. Dynamic File Handling: Instead of manually connecting input files, I want the workflow to dynamically pull data based on the requirements table and file paths. This would allow the workflow to scale with varying numbers and datasets of different sizes.
  2. Simplification: The current workflow has repetitive actions. I'm seeking advice on how to streamline this process.
  3. Scalability: The example datasets are simplified for demonstration, but I need the workflow to apply to more complex and larger datasets.

 

Following are the details of the current workflow.

Current Workflow:

  • Inputs: The workflow takes datasets and requirements as inputs. For example:

    • Dataset 1: appleRecord
      • Idcolourweightsweetness
        apple1red51
        apple2yellow410
        apple3green69
        apple4blue56
        apple6 2010
    • Dataset 2: boxRecord
      • IdLengthWidthHeightWeight
        box110203050
        box215302040
        box320151510
        box4555100
    • Requirements (Input): Each dataset has specific validation criteria for both class and range fields, as defined in a requirements table:
      • FileNameFieldTypeMinMaxClassesemptyOk
        appleRecordcolourClass  red, yellow,greenFALSE
        appleRecordweightRange110 FALSE
        appleRecordsweetnessRange5  FALSE
        boxRecordLengthRange1530 FALSE
        boxRecordWidthRange1530 FALSE
        boxRecordHeightRange1530 FALSE
        boxRecordWeightRange1530 FALSE
  • Outputs: The workflow generates an Excel file with two sheets, one for each input dataset, listing the invalid records. The original data format is retained, with an added RecoHere'solumn. Here's how the output looks:
    • Sheet 1: appleRecord
      • Field Out of Range: SWEETNESS
        RecordIDIdcolourweightsweetness
        1APPLE1RED51
        Field Out of Range: WEIGHT
        RecordIDIdcolourweightsweetness
        5APPLE6 2010
        Invalid Type: COLOUR
        RecordIDIdcolourweightsweetness
        4APPLE4BLUE56
        5APPLE6 2010
    • Sheet 2: boxRecord
      • Field Out of Range: HEIGHT
        RecordIDIdWeightLengthWidthHeight
        4BOX4100555
        Field Out of Range: LENGTH
        RecordIDIdWeightLengthWidthHeight
        4BOX4100555
        1BOX150102030
        Field Out of Range: WEIGHT
        RecordIDIdWeightLengthWidthHeight
        4BOX4100555
        2BOX240153020
        1BOX150102030
        3BOX310201515
        Field Out of Range: WIDTH
        RecordIDIdWeightLengthWidthHeight
        4BOXI've0555

 

I’ve attached the original workflow for your reference. I would greatly appreciate any suggestions on how to achieve these improvements!

Thank you!

0 REPLIES 0
Labels