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

How to select data type of unknown field

Polite123
8 - Asteroid

Hi team,

 

Need quick help.

I have 4 columns in the form of Quarters Q12022,Q22022,Q32022,Q42022.

Required data type for all 4 columns should be double.

But every quarter new column comes in data type is changed to string.

With every new run the data type of unknow field must be double for Quarter data(Q1........,Q2.... and so on) along with other V_W string columns.

 

I am using App Macro combination and hence this issue is coming up.

Kindly help

 

 

5 REPLIES 5
binuacs
21 - Polaris

@Polite123 I think the unknown field is determining the data type based on the field value. I tested the same and I don't find any issue you mentioned. Below are my first run and the second run result.  

 

binuacs_0-1676756931948.png

 

binuacs
21 - Polaris

@Polite123 Can you also check the new column has only numeric values

Polite123
8 - Asteroid

@binuacs Yes the new column has only numeric values but the output has string data type.

 

Is therea way to set data type for all columns starting with Q should always have numeric values.

 

Thanks

binuacs
21 - Polaris

@Polite123 One option is to use the dynamic select too to select only the fields starting with Q then use the MultiField tool to change the type to double. Attaching a sample workflow for your reference

 

binuacs_0-1676794577531.png

 

Polite123
8 - Asteroid

@binuacs -You are truly a magician.

Thanks a lot:)

Labels
Top Solution Authors