Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Comparing Forecasting vs Actual in changing column rows

JohnMcAnallen
5 - Atom

Hi There,

 

It's my first time posting on the forum so apologies if I have posted this in the wrong place. 

 

I'm having a problem with a comparison workflow that I'm hoping someone can help with. 

 

Every week I get sent two files. One details forecasted hours, the other details actual hours and I have a workflow that analyses the sheets to spot the differences and produce one output file with various information included.

 

Example of Forecasted hours sheet:

 

Week 1        
Unique RefTime (Hours) 3 Aug 2020Time (Hours) 10 Aug 2020Time (Hours) 17 Aug 2020Time (Hours) 24 Aug 2020Time (Hours) 31 Aug 2020Time (Hours) 7 Sep 2020Time (Hours) 14 Sep 2020Time (Hours) 21 Sep 2020
100000037.537.5
20003030000
337.50000000
4000300000
500000022.50
603037.500000
7300000000
80003037.537.57.50
937.537.537.500000
1000022.50000

 

Example of Actual Hours sheet: 

 

Unique ReferenceWeek Start DateTotal Hours BilledTotal Hours Not BilledTotal
117/08/2020 3838
217/08/2020 2323
317/08/2020 1111
417/08/2020 11
524/08/2020 44
624/08/202014 14
124/08/2020 2323
124/08/2020 11
124/08/202036 36
224/08/2020 22
324/08/202015 15
424/08/2020 1111
224/08/2020 22

 

 

The issue I'm having is involving the naming of the forecasted hours sheet, as you can see from the second example below, the column names change every week to reflect the new weeks. This breaks formulas I have created to get the 8 week total for use in comparing against the actual hours sheet. 

 

Example 2 of Forecasted Hours:

 

 

Week 2        
Unique RefTime (Hours) 10 Aug 2020Time (Hours) 17 Aug 2020Time (Hours) 24 Aug 2020Time (Hours) 31 Aug 2020Time (Hours) 7 Sep 2020Time (Hours) 14 Sep 2020Time (Hours) 21 Sep 2020Time (Hours) 28 Sep 2020
100000037.537.5
20003030000
337.50000000
4000300000
500000022.50
603037.500000
7300000000
80003037.537.57.50
937.537.537.500000
1000022.50000

 

My question is whether or not there is a way that I can create a dynamic total per unique reference regardless of the column name change every week?

 

Thanks!

 

 

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi  @JohnMcAnallen I mocked up a workflow that I think address the changing columns names and should be dynamic. Let me know what you think?

JohnMcAnallen
5 - Atom

Thanks so much, this is perfect!

Labels