Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

CrossTab and Transpose Problems (I think!)

Bobbins
8 - Asteroid

Good Day All,

My Valets (demo data) have been playing up again and not been entering the data of tickets correctly into the spreadsheet. Here is the data:

 

Ticket NumberDateTimeAction
1557805/09/2022 06:29Issue Time
1557811/09/2022 09:15Issue Time
1557811/09/2022 17:08Issue Time
1557812/09/2022 09:31Issue Time
1557813/09/2022 17:43Issue Time
1557814/09/2022 06:45Issue Time
1557815/09/2022 12:47Issue Time
1557805/09/2022 16:05Paid Time
1557811/09/2022 16:17Paid Time
1557812/09/2022 06:40Paid Time
1557812/09/2022 11:40Paid Time
1557814/09/2022 02:29Paid Time
1557814/09/2022 09:20Paid Time
1557815/09/2022 15:11Paid Time
1557916/09/2022 16:17Issue Time
1557917/09/2022 06:40Paid Time
1558018/09/2022 11:40Issue Time
1558119/09/2022 02:29Issue Time
1558119/09/2022 09:20Suspended
1558119/09/2022 02:29Issue Time
1558219/09/2022 11:29Suspended
1558220/09/2022 09:20Paid Time

 

You will notice that:

1) Sometimes the same ticket number is used over and over again but at different dates/times

2) Sometimes the ticket is suspended (not yet paid)

3) Ticket may be issued, suspended and then paid or just issued and paid or issued

 

What I want to get it to is this:

Ticket NumberIssue TimeSuspended TimePaid Time
1557805/09/2022 06:29 05/09/2022 16:05
1557811/09/2022 09:15 11/09/2022 16:17
1557811/09/2022 17:08 12/09/2022 06:40
1557812/09/2022 09:31 12/09/2022 11:40
1557813/09/2022 17:43 14/09/2022 02:29
1557814/09/2022 06:45 14/09/2022 09:20
1557815/09/2022 12:47 15/09/2022 15:11
1557916/09/2022 16:17 17/09/2022 06:40
1558018/09/2022 11:40  
1558119/09/2022 02:2919/09/2022 09:20 
1558219/09/2022 02:2919/09/2022 11:2920/09/2022 09:20

 

I am sure i should be using some CrossTab and Transpose but maybe i am using the wrong tools?

Thank you

9 REPLIES 9
AngelosPachis
16 - Nebula

Hi @Bobbins ,

 

Since each row will always have an issue time you might want to come up with the way to group the sequence the different events happened. What I did is first order the events for each ticket and noticed that each group should restart when every time action is Issue Time as long as the previous two rows don't contain "Issue time" in column [Action]

 

AngelosPachis_0-1663844128143.png

Hope this helps,

Angelos

Bobbins
8 - Asteroid

Hi @AngelosPachis 
Thanks for assistance but your sample workflow does not match your output picture above?

AngelosPachis
16 - Nebula

Hi @Bobbins ,

 

I downloaded my file again and checked the screenshot I've attached to my post earlier to the workflow's output and they look the same to me. Can you help me understand what are the inconsistencies you've observed? :)

Bobbins
8 - Asteroid

If i run the flow as downloaded, this is what i get?

Bobbins_0-1663846099519.png

 

AngelosPachis
16 - Nebula

@Bobbins can you try again please with the attached workflow? I also noticed an inconsistency in the provided input and output (for ticket ID 15582) but should be alright now 

 

Cheers,

Angelos

Bobbins
8 - Asteroid

@AngelosPachis Sadly same problem, now on different lines. If it helps i am using 2020.4

AngelosPachis
16 - Nebula

Interesting, so I asked one of my colleagues to open up the workflow and they see the same as I do so probably something get's mixed up due to the incompatibility of version.

 

I've tried downgrading my workflow to 2020.4, maybe this will solve the issue? If the issue remains, I'm happy to talk you through each step with screenshots

AngelosPachis
16 - Nebula

@Bobbins one more thing that might be causing an issue (shout out to @DataNath ). When running the workflows, can you make sure that the AMP engine is off? 

 

You can do that by clicking on your canvas and then from the Configuration window go to Runtime and uncheck the AMP engine box? All workflows should work fine if this is not checked

 

AngelosPachis_0-1663848761941.png

 

 

Bobbins
8 - Asteroid

Hi @AngelosPachis 

Turning the AMP engine off still causes the same problem. @DataNath  may be one for you to be aware of.

Looking further, this is my Sort (7) values:

Bobbins_0-1663850842653.png

After this, the Crosstab screws it up

Labels