In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

grouping

renanpinheiro
7 - Meteor

Hello everyone.
I have a base that contains sales information per store, product and month, as shown below:

 

Capturar.PNG

 

 

I need to pick up every seven months and create a period column (Jan16-Jul16 / Feb16-Aug16) by grouping sales together:

 

Capturar2.PNG

 

the sum is made as follows:
- period Jan16-Jul16 was the sale of all the months of this period. In this case I had one sale in July, so the value will be 1.
- period Feb16-Aug16 was the sale of all the months of this period. In this case I had one sale in July and two in August, then the value will be 3.

and so goes for the whole base.

 

Can someone help me?

 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

The easiest way as long as the data has all months is:

- Add a running total grouped by Filial and CD_Produto totalling Sales

- Use a Multi Row to get the running total value from 6 rows later

 

You can then use a formula too to produce start and end months

 

Sample attached

renanpinheiro
7 - Meteor

Thanks @jdunkerley79, it worked perfectly.

Labels
Top Solution Authors