Free Trial

Alteryx Designer Desktop Discussions

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

Macro Input Field Names

BRRLL99
11 - Bolide

Hi

 

I have build standard Macro with sample data , column names are completely different names with original data but process is same.

I have selected Show Field  Map

when I inserted in my original data, I'm receiving string and int , 2 drop downs

In the original data set I need to do Group by description and count by description

Since description is string type, that option is not coming in the second drop down

Sample macro has been attached please look into it. 

1 REPLY 1
patrick_digan
17 - Castor
17 - Castor

@BRRLL99 Hopefully the attached is what you're looking for. You have 2 columns in your macro (DATA and SALES). The user needs to map these 2 columns, but it sounds like you want SALES to be optional (when they check the count box, SALES isn't needed). I don't believe you can map 1 field to both Data and Sales; instead, here's how I would handle it:

 

0) The macro didn't have the show field map checked, so I checked that.

1) I changed the field name in your macro input from "SALES" to "SALES (Optional)". Alteryx has special coding that now doesn't require the Sales field to be passed given the title includes (Optional).

patrick_digan_0-1676996059173.png

2) I updated Select (22) to revert the SALES (Optional) back to SALES. 

3) I updated Summarize (9) and Summarize (10) to count on DATA.

patrick_digan_1-1676996120278.png

Now your macro can accept just 1 field and use the count method:

patrick_digan_2-1676996203902.png

 

 

 

Labels
Top Solution Authors