Hello! I've been using Alteryx for about 3 months now and am still learning the ropes. Unfortunately, I am having trouble creating a column with particular logic.
The scenario is this:
Each row in my data indicates the sum of 'Studio Hours' created on a given date that occurs in the same month. The 'creation date' field represents the date the reservation was created, and the 'month of class date' field represents the month the reservation is set to occur. The 'Studio Hours' column represents the duration of the reservation. Every day, new reservations might be created, and existing reservations can be canceled.
The question I am trying to answer is: What is the total 'Studio hours' that have been reserved for 'Month of Class Date' as of (n) 'Creation Date'?
Finished product would look like:
Studio ID | Product Line | Creation Date | Month of Class Date | Sum_Studio Hours | Total Studio Hours for Month of Class Date |
276364 | Soccer | 5/28/2020 | 5/1/2020 | 18 | 140 |
276364 | Soccer | 5/29/2020 | 5/1/2020 | 4 | 132 |
276364 | Soccer | 5/30/2020 | 5/1/2020 | 2 | 134 |
Thanks in advance for your help! I hope I am missing something simple here!
Solved! Go to Solution.
Are you looking for a running total within a given month as seen below? It also isn't clear how cancellations are represented.
I think that is what the workflow I shared is doing above. It is a running total that groups by Studio ID, Product Line, and Month of Class Date. When the Creation date is sorted in ascending order, the sum will only be within the current month on or before the creation date.
User | Count |
---|---|
109 | |
92 | |
78 | |
54 | |
40 |