Alteryx Designer Desktop Discussions

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

Someone is looking to have their reports sorted by pay period, is this possible?

rmartori
8 - Asteroid

So I was given an assignment to help with a workflow that was partially made. Basically they have a report that they pull usually once a week/every other week that lists who was working on what project based on the charge code used.

 

They wanted to segment the data by week or by pay period, we get paid every two weeks and it runs wed to wed so for So using the example below a pay period would be July 1st - 15th.

 

The part that is already done on the work flow involves the fiscal year/period. Because there are multiple fiscal periods in the report there are duplicates of the employees so they basically took  each fiscal period and made it it's own column instead of one column.



So we are wondering if it is possibly to segment data based on a week or pay period.

 

Sample of original data data(in the actual data Charge code is merged with the blank cell.)

 

Employee name

Fiscal year/periodCharge code Document DateHoursCost
Jane Doe001/202110100101101Daves auto rental07/01/20201 
John Smith002/202110100101101Daves auto rental07/08/20201 
Bob Bobson001/202110100101101Daves auto rental07/10/20201 
Hope Surname001/202110100101101Daves auto rental07/17/20201 
Inglebert Humperdink001/202110100101101Daves auto rental07/23/20201 
Jane Doe001/202110100101101Daves auto rental07/20/20201 

 

Data after being run through the bottom part of the workflow It puts each of the fiscal periods in it's own column and puts the total hours for each.

 

Task groupName001_2021002_2021
Daves auto rentalJane Doe16452
Daves auto rentalJohn Smith7625
Daves auto rentalBob Bobson4318
Daves auto rentalHope Surname  
Daves auto rentalInglebert Humperdink2.5 
    

 

Screenshot of workflow

alteryx exampl.PNG

 

 

Basically they would like to further break this up by Pay period or by week if that is possible. Which is what the top fork of the workflow is meant to be.

 

4 REPLIES 4
KrishnaKuchibhotla
6 - Meteoroid

Hi @rmartori,

 

If I correctly understand you are looking to have separate columns for each period cycle and then aggregate the hours that employer needs to pay to employee.

 

KrishnaKuchibhotla_0-1598720320751.png

Attached the alteryx workflow. Hope this satisfies your requirement

rmartori
8 - Asteroid

More like They want to combine all the duplicate names but break their hours up by Fiscal period and also either week or pay week. We already have the fiscal year part.


So to change the example a bit.

 

Original:

Employee name

Fiscal year/periodCharge codeCompany nameDocument DateHoursCost
Jane Doe001/202110100101101Daves auto rental07/01/20201 
Jane Doe001/202110100101101Daves auto rental07/08/20201 
Jane Doe001/202110100101101Daves auto rental07/15/20201 
Jane Doe002/202110100101101Daves auto rental08/26/20201 
Jane Doe002/202110100101101Daves auto rental08/19/20201 
Jane Doe002/202110100101101Daves auto rental08/20/20201 
Jane Doe001/202110100101101Daves auto rental07/22/20201 
Jane Doe001/202110100101101Daves auto rental07/29/20201 
Jane Doe002/202110100101101Daves auto rental08/05/20201 
Jane Doe002/202110100101101Daves auto rental08/12/20201 

 

 

to something like this. Are pay periods are always on the 15th, and then the end of the month(30th or 31st depending)

 

Employee nameCharge codeCompany Name001/2021002/20217/1-7/157/16-7/318/1-8/158/16-8/31
Jane Doe10100101101Dave's auto rental553223

 

 

KrishnaKuchibhotla
6 - Meteoroid

Sure. Can you please download the above alteryx file and change the cross tab tool group selection similar to below?.

 

Note - The current logic caters for the Pay group data segment. I hope you this can be amended to your logic. Feel free to message me for any help.

 

KrishnaKuchibhotla_0-1598934295638.png

 

If this solves your problem,please mark this as a accepted solution.

 

Regards

Krishna Kuchibhotla

rmartori
8 - Asteroid

There is one last thing I would like to do If possible. To have the Fiscal year displayed more as such.

 

rmartori_0-1599679216671.png

 

Right now the whole thing outputs as.

 

rmartori_1-1599679290622.png

 



Basically it puts everything into pay period 1 or 2 ignoring the month entirely, in this example there is july and august but they all end up in columns F & G.

So in cases where there are multiple months in the report we'd like it to extend into H, I, and so on. Or if possible have it take the month into account some how.

Everything before that is displaying perfectly



 

Labels