Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Running total to rest at certain points

chiragpatel_1
8 - Asteroid

Hi,

 

In the below data I want the Month to date revenue to be a running total but i want that running total to reset whenever the territory code changes.

 

The territory code would appear again for June, so not sure if that needs to be taken into account or not.

 

 

chiragpatel_1_0-1654506792201.png

 

 

Thank you very much

 

6 REPLIES 6
IraWatt
17 - Castor
17 - Castor

Hey @chiragpatel_1,

Should the same codes in June combine with the end of the running total from may?

IraWatt
17 - Castor
17 - Castor

Hey @chiragpatel_1 ,

Here's how I would do this:

IraWatt_0-1654507223706.png

Group by the territory code in a multi row formula adding the top row to the bottom. If you want to have a separate running total for each month and code then you will need to group by month also.

Any questions or issues please ask :)
HTH!
Ira

chiragpatel_1
8 - Asteroid

No they do not need combining

DataNath
17 - Castor
17 - Castor

If you just bring on the Running Total tool, you can tick what you want a RT for (Month to Date revenue in your case) and then there’s an option to ‘group by’ other fields which just keeps a running total for each split within that field - in your case you would just tick to group by Territory Code.

chiragpatel_1
8 - Asteroid

Thank you @IraWatt  , your suggestion will also be quite helpful in future.

chiragpatel_1
8 - Asteroid

Just been cheeky!

 

I have the below formula ad for some odd reason it is missing out the last day of May, (the 31st), what changes do i have to make in the formula

 

DateTimeMonth([Workflow Run])=DateTimeMonth(DateTimeNow())-1

 

//is it MTD?

 

very many thanks

Labels
Top Solution Authors