Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to achieve this output

surajseshan
8 - Asteroid

I have this input below

 

Input screen shot

 

surajseshan_0-1674490995511.png

 

i need the desired output

 

Output screen shot - 

 

surajseshan_1-1674491037947.png

Note :- Budgeted hours (new column) to be fixed at 250 hours for each month

Actual hours should be sum of charged hours on each month

Month - group by month and year in the same format as given in output screenshot

14 REPLIES 14
FinnCharlton
13 - Pulsar

Hi @surajseshan , here's one way to match the output:

FinnCharlton_0-1674491805869.png

 

ShankerV
17 - Castor

Hi @surajseshan 

 

Please find the expected output..

 

ShankerV_1-1674493287202.png

 

ShankerV_2-1674493297721.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @surajseshan 

 

Explaining the steps in details to show how the solution will work dynamically.

 

Step 1: Input

ShankerV_0-1674493414055.png

 

Step 2: Formula tool to fetch the Month and Year alone.

As date is of no use, as we need the days by month and year.

 

ShankerV_1-1674493467469.png

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @surajseshan 

 

Step 3: Summarize tool to consolidate (Groupby) month name and Sum all the hours

ShankerV_0-1674493591790.png

 

Step 4: Sort tool to sort the month in format May, June, July in the upcoming steps

 

ShankerV_1-1674493646769.png

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

Hi @surajseshan 

 

Step 5: Formula tool to modify the Month 05-22 to May-22 as expected in output

Then also inputting the Budgeted hours as 250.

 

ShankerV_0-1674493735153.png

 

Step 6: Record ID tool, 

ShankerV_1-1674493770386.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @surajseshan 

 

Step 7: Transpose tool to move from Row to column format

 

ShankerV_0-1674493853095.png

 

Step 8: Cross tab tool to realign the data

ShankerV_1-1674493898171.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @surajseshan 

 

Step 9: Sorting by Name

 

ShankerV_0-1674493955122.png

 

Step 10: Record ID tool

 

ShankerV_1-1674493978220.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @surajseshan 

 

Step 11: Sorting by Record ID to get the right format

 

ShankerV_0-1674494034261.png

 

 

Step 12: Select tool

ShankerV_1-1674494060540.png

 

 

Post run, expected result:

ShankerV_2-1674494082395.png

 

Many thanks

Shanker V

 

 

ShankerV
17 - Castor

Hi @surajseshan 

 

As we have used the Summarize tool with Sum option, the changes in the input for the month of June gives the right output.

ShankerV_1-1674494209745.png

 

Output:

ShankerV_2-1674494230737.png

 

Many thanks

Shanker V

 

 

 

 

Labels
Top Solution Authors