Alteryx Designer Desktop Discussions

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

Move dates from columns to rows along with hours

AntlRo
8 - Asteroid

Hello I think this is an easy one

 

I have a raw data set with the below columns: The date column has the average time it takes them to complete each tasks. PLease post a yxmd thats easy to use for large data sets theres about 300 rows I'm comparing this too and this is just a short sample :

 

 

NameTeam NAmeTasks1/1/20222/2/2022 3/3/2022     
JohnGiantsRun312    
JohnGiantsWalk111    
JohnGiantsPlay232    
ChrisJEtsPLay211    
ChrisJEtswalk222    
ChrisJEtsRun111    
          
          
          

 

 

 

I want the output to look like this:

NameTeam NAmeTasksMonthSum of Hours     
JohnGiantsRun

1/1/2022

6     
JohnGiantsWalk2/1/20223     
JohnGiantsPlay3/1/20227     
ChrisJEtsPLay1/1/20224     
ChrisJEtswalk2/1/20226     
ChrisJEtsRun3/1/20223     
          
          
          

 

11 REPLIES 11
MatthewO
Alteryx Alumni (Retired)

@AntlRo attached is a sample of how you may be able to approach this. I don't follow how your output is being calculated, and the example doesn't achieve the same results, but with some modifications it may get you there. If you can clarify the calculation for the Hours field, happy to take another pass.

 

image.png

 

flying008
14 - Magnetar

Hi, @AntlRo 

 

What's your field [Month] ?

录制_2022_11_16_08_11_16_17.gif

AntlRo
8 - Asteroid

ITs just a sum of the date rows which are hours , I just edited my post. Basically Each date column are hours ( example 1 hour, 2 hours etc))

AntlRo
8 - Asteroid

ITs just a sum of the date rows which are hours , I just edited my post. Basically Each date column are hours ( example 1 hour, 2 hours etc))

flying008
14 - Magnetar

Hi,@AntlRo 

 

The [Hour] is get, but what logic about field [Month] ?

AntlRo
8 - Asteroid

Basically you create a new column and call it what ever you want, but in this case we will call it month. 

flying008
14 - Magnetar

Hi, @AntlRo 

 

So, like this ?

录制_2022_11_16_09_32_35_481.gif

AntlRo
8 - Asteroid

can you post the yxmd so I can compare 

flying008
14 - Magnetar

Hi,@AntlRo 

 

I can't  upload any files, so give you a  gif here:

录制_2022_11_16_09_50_36_518.gif

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels