I need to calculate average and median by fiscal year and month for the columns C, D, E, F. The values in C, D, E, F represent time in days for each row falling in a specific month and year.
Based on Sample Data attached, I need output as:
Row Year Month Avg_C Median_C YTD_Avg_C YTD_Median_C ...
1 FY 2012 02
2 FY 2012 03
For the month 02 : Avg_C and YTD_Avg_C will be the same since it is only month 02 into consideration
For the month 03: Avg C will be only average for rows that fall in the month 03 and YTD Avg C will be average for the rows that fall in month 02 and month 03. I believe this is somewhat easier to achieve with some summarize tool and runner tool, but I haven't gotten around to create it yet. I was hoping to combine all of the calculations together.
Median is where I am requesting help. Median C will be only for month 03 whereas YTD Median C will be median value for both months.
Any help is appreciated. Hope I was able to describe my request clearly.
I was trying to see if this could help, but I couldn't replicate the steps.
https://community.alteryx.com/t5/Alteryx-Designer/Moving-Median/m-p/439015