I'm trying to transition a process from Excel into Alteryx and am getting hung up on a standard deviation calculation.
I've attached some sample data. It has rate values for different markets by quarter, and the current formula in excel is:
=STDEV.P(IF($A$1:[@Market]=[@Market],$C$1:[@Rate]))
Where column A is the market name, and column C is the rate value. So for each row, the standard deviation is calculated from that row's rate and every row above it with the same market name.
This macro replicates the STDEV.P excel formula, but I am at a loss as to how to group by market and iterate each set of rows through it.
I've thought of doing a multi-row formula similar to what is discussed here, but the number of quarters/rows is not always consistent for each market.
Any thoughts?