Hi all,
I have a table with daily revenue amounts for each combination of country + function + category + revenue stream.
I've created two new columns: one for the running total for each month, and one for the overall total for each month (colored green in screenshot).
I need to find a way to create the additional four columns (colored yellow) in Alteryx. These columns are:
It's important that these new values are also for the same combination of each country + function + category + revenue stream, not just date, as there is far more data in my real dataset. Sample Excel attached.
I just can't figure out how to tell Alteryx to pull the correct values into my new fields. Any help is appreciated!
Solved! Go to Solution.
What I'd do is:
don't include the sale date in your group by, otherwise you have only one row for this group, which will give you null values for row-1
the sorting is messed up because of the AMP engine i think, you need to sort again after each multirow formula tool (or disable the AMP engine for the workflow)
Thanks @dwstada! That fixed the sorting. I'm still having trouble with the multi-row formula, I'm afraid - I want to say: "If the sales date of the previous row is exactly one year before the sales date of the active row, then return the running total from the previous row. Otherwise, return null". This is just resulting in all nulls, however.
Any ideas why this isn't working?
What I'm getting:
Desired result:
Hey @zara4580 , sorry I didn't see this reply.
Incase this is still open I have attached a fix.
Additionally to the Sale Date MDY column, create another column with month and day, use this one in the group by of the multi-row formula tool. Then you should have groups for all month-day combinations of different years.