Alteryx Designer Desktop Discussions

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

Alteryx Logic Request

Jaganmohan
Asteroide

Hi Team - Need your support on below, Thanks in advance.

I need to generate result Column as a output (shown below).


Result Logic : In case last 3 days numbers are same then A  or if not then  B.

My challenge was dates (Column headings)  are keep changing because i am extracting last 3 days of information  and at the same time i need a final output with dates similar like below mentioned. 

 

ID12/7/202212/8/202212/11/2022Results
6313.663.643.6B
28206150150150A
282083131.932.21B
3463821.4121.4121.41A
3698245.8945.844.6B
47349131313A
4988729.1128.9129.35B
5103130.3831.2631.15B
61909274274274A

 

Thanks.

9 RESPUESTAS 9
ellen-wiegand
Alteryx
Alteryx

Are your columns always in the same order? You could skip field names in the input tool, and/or use a dynamic rename tool

PanPP
Alteryx Alumni (Retired)

Hi @Jaganmohan 

 

When you bring in the data, how does the preview look like for the first couple of rows? Are the dates in row 1 or row 2? You can set some logic where if it's null or empty, you can set the value to Date 1/Date 2/Date 3 and then use a dynamic rename tool to bring those values as column headers.

 

Attached is a sample WF that gets your output after taking making sure the column names can be scalable. 

 

Hope this helps.

 

Jaganmohan
Asteroide

Thanks - I am good with formula tool and generating Results out of that.

But, my challenge was those dates (Column headings) are keep on changing  and at the same time i need a solution with Result Column  with Dates as i mentioned in the table.

Notes : Dates are not constant....always i used to extract last 3 days info.    

Jaganmohan
Asteroide

Thanks.

But, my challenge was those dates (Column headings) are keep on changing  and at the same time i need a solution with Result Column  with Dates as i mentioned in the table.

Notes :  1) Dates are not constant....always i used to extract last 3 days info.   2) Need a final output with  Dates + Result Columns.

binuacs
Arturo

@Jaganmohan One way of doing this dynamically 

 

binuacs_0-1670875051047.png

 

flying008
Magnetar

Hi,@Jaganmohan 

 

There is a easy way for dynamic calculate your  values of date-name fields.

 

录制_2022_12_13_11_43_11_137.gif

 

BTW, the workfolow key point is formula to match all same values by use REGEX_Match()

Spoiler
IIF(REGEX_Match([Concat_Value], "^([^|]+?)\|\1\|\1$"), "A", "B")

 

******

If it can help you , please mark it as a solution and give a like for more share.

Jaganmohan
Asteroide

Hi - Thanks for the solution.

Could you please provide me the Workflow Solution if possible.

flying008
Magnetar

Hi, @Jaganmohan 

 

Sorry, I can't upload the wf because the security police, but the process are so clear, so you can flow it to get output. 

PanPP
Alteryx Alumni (Retired)

Hi @Jaganmohan 

 

I have uploaded a sample WF that @flying008 has shown in his image.

 

Hope this helps. Please like the post and mark both of our posts as solutions if it does.

Etiquetas