I've read a few archived discussions on trying to always maintain continuous hours.
Each day I receive an excel and I pull the data in automatically into Alteryx. The challenge is I'm trying to figure out how to fill in the gaps in some of the files that come in.
One day I could receive an excel that has the following
| Location | Traffic Review | Hour | Segment 1: Tickets |
| Indiana | 9/23/2023 | 1 | 458 |
| Indiana | 9/23/2023 | 2 | 369 |
| Indiana | 9/23/2023 | 3 | 285 |
| Indiana | 9/23/2023 | 4 | 44 |
| Indiana | 9/23/2023 | 5 | 89 |
| Indiana | 9/23/2023 | 6 | 98 |
| Indiana | 9/23/2023 | 7 | 15 |
| Indiana | 9/23/2023 | 9 | 36 |
| Indiana | 9/23/2023 | 10 | 85 |
And another I could receive
| Location | Traffic Review | Hour | Segment 1: Tickets |
| Indiana | 9/23/2023 | 1 | 458 |
| Indiana | 9/23/2023 | 2 | 369 |
| Indiana | 9/23/2023 | 3 | 285 |
| Indiana | 9/23/2023 | 4 | 44 |
| Indiana | 9/23/2023 | 5 | 89 |
| Indiana | 9/23/2023 | 6 | 98 |
| Indiana | 9/23/2023 | 7 | 15 |
| Indiana | 9/23/2023 | 9 | 36 |
| Indiana | 9/23/2023 | 10 | 85 |
| Indiana | 9/23/2023 | 11 | 45 |
| Indiana | 9/23/2023 | 12 | 99 |
| Indiana | 9/23/2023 | 13 | 85 |
| Indiana | 9/23/2023 | 14 | 36 |
| Indiana | 9/23/2023 | 15 | 7985 |
| Indiana | 9/23/2023 | 16 | 665 |
| Indiana | 9/23/2023 | 17 | 789 |
| Indiana | 9/23/2023 | 18 | 693 |
| Indiana | 9/23/2023 | 19 | 147 |
| Indiana | 9/23/2023 | 20 | 456 |
| Indiana | 9/23/2023 | 21 | 684 |
| Indiana | 9/23/2023 | 22 | 731 |
| Indiana | 9/23/2023 | 23 | 821 |
| Indiana | 9/23/2023 | 24 | 936 |
Because I have this tied to a dashboard, I need to fill in the gaps
I need it to always populate all the hours between 1-24 and if is missing a row
ie: the direct above table is missing 8 then it would automatically fill in the Location, Date, Hour and just put zero for the number of tickets.
| Location | Traffic Review | Hour | Segment 1: Tickets |
| Indiana | 9/23/2023 | 1 | 458 |
| Indiana | 9/23/2023 | 2 | 369 |
| Indiana | 9/23/2023 | 3 | 285 |
| Indiana | 9/23/2023 | 4 | 44 |
| Indiana | 9/23/2023 | 5 | 89 |
| Indiana | 9/23/2023 | 6 | 98 |
| Indiana | 9/23/2023 | 7 | 15 |
| Indiana | 9/23/2023 | 8 | 0 |
| Indiana | 9/23/2023 | 9 | 36 |
| Indiana | 9/23/2023 | 10 | 85 |
| Indiana | 9/23/2023 | 11 | 45 |
| Indiana | 9/23/2023 | 12 | 99 |
| Indiana | 9/23/2023 | 13 | 85 |
| Indiana | 9/23/2023 | 14 | 36 |
| Indiana | 9/23/2023 | 15 | 7985 |
| Indiana | 9/23/2023 | 16 | 665 |
| Indiana | 9/23/2023 | 17 | 789 |
| Indiana | 9/23/2023 | 18 | 693 |
| Indiana | 9/23/2023 | 19 | 147 |
| Indiana | 9/23/2023 | 20 | 456 |
| Indiana | 9/23/2023 | 21 | 684 |
| Indiana | 9/23/2023 | 22 | 731 |
| Indiana | 9/23/2023 | 23 | 821 |
| Indiana | 9/23/2023 | 24 | 936 |
I've looked at the other solutions in the archive and they didn't work as expected.
The biggest challenge if this is possible is then making a calculation somewhere that does this for Location = Indiana and Location = Illinois so that it looks to see if Indiana has 24 hours of data for that data and then looks to see if Location = Illinois has 24 hours of data ..
so for example the final result would look like this
| Location | Traffic Review | Hour | Segment 1: Tickets |
| Indiana | 9/23/2023 | 1 | 458 |
| Indiana | 9/23/2023 | 2 | 369 |
| Indiana | 9/23/2023 | 3 | 285 |
| Indiana | 9/23/2023 | 4 | 44 |
| Indiana | 9/23/2023 | 5 | 89 |
| Indiana | 9/23/2023 | 6 | 98 |
| Indiana | 9/23/2023 | 7 | 15 |
| Indiana | 9/23/2023 | 8 | 0 |
| Indiana | 9/23/2023 | 9 | 36 |
| Indiana | 9/23/2023 | 10 | 85 |
| Indiana | 9/23/2023 | 11 | 45 |
| Indiana | 9/23/2023 | 12 | 99 |
| Indiana | 9/23/2023 | 13 | 85 |
| Indiana | 9/23/2023 | 14 | 36 |
| Indiana | 9/23/2023 | 15 | 7985 |
| Indiana | 9/23/2023 | 16 | 665 |
| Indiana | 9/23/2023 | 17 | 789 |
| Indiana | 9/23/2023 | 18 | 693 |
| Indiana | 9/23/2023 | 19 | 147 |
| Indiana | 9/23/2023 | 20 | 456 |
| Indiana | 9/23/2023 | 21 | 684 |
| Indiana | 9/23/2023 | 22 | 731 |
| Indiana | 9/23/2023 | 23 | 821 |
| Indiana | 9/23/2023 | 24 | 936 |
| Illinois | 9/23/2023 | 1 | 0 |
| Illinois | 9/23/2023 | 2 | 0 |
| Illinois | 9/23/2023 | 3 | 0 |
| Illinois | 9/23/2023 | 4 | 0 |
| Illinois | 9/23/2023 | 5 | 0 |
| Illinois | 9/23/2023 | 6 | 0 |
| Illinois | 9/23/2023 | 7 | 0 |
| Illinois | 9/23/2023 | 8 | 0 |
| Illinois | 9/23/2023 | 9 | 0 |
| Illinois | 9/23/2023 | 10 | 0 |
| Illinois | 9/23/2023 | 11 | 0 |
| Illinois | 9/23/2023 | 12 | 0 |
| Illinois | 9/23/2023 | 13 | 0 |
| Illinois | 9/23/2023 | 14 | 0 |
| Illinois | 9/23/2023 | 15 | 0 |
| Illinois | 9/23/2023 | 16 | 0 |
| Illinois | 9/23/2023 | 17 | 0 |
| Illinois | 9/23/2023 | 18 | 0 |
| Illinois | 9/23/2023 | 19 | 0 |
| Illinois | 9/23/2023 | 20 | 0 |
| Illinois | 9/23/2023 | 21 | 0 |
| Illinois | 9/23/2023 | 22 | 0 |
| Illinois | 9/23/2023 | 23 | 0 |
| Illinois | 9/23/2023 | 24 | 0 |