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

Group By Month

MarekRe
7 - Meteor

Hi

 

I have two columns - Date (YYYY-MM-DD) and Sales.

 

What I want to do is to group (summarize) sales by Month. How can I do this in Alteryx? I have tried many things and looked for the answer on the group, but no luck..

 

This should be really simple.

 

thanks

5 REPLIES 5
echuong1
Alteryx Alumni (Retired)

You'd need to create another column for Month that is derived from your Date, and then use that as a Group By in the Summarize tool.

 

See below and attached for an example.

 

echuong1_0-1595594987671.png

 

 

Hope this helps!

MarekRe
7 - Meteor

thank you @echuong1 

 

can you help me to get this column in the YYYY-MM format?

echuong1
Alteryx Alumni (Retired)

You can use the DateTime tool within the Parse palette to convert your fields to alteryx recognized dates.

szade1
8 - Asteroid

Hi @MarekRe ,

 

Once you get the date field from DateTime tool, you can format it as you like.

for ex: formula - DateTimeFormat([DateTime_Out], "%Y_%m") will give you the date in YYYY_MM format.

 

Hope it helps!

 

Thanks,

S.

 

 

MarekRe
7 - Meteor

I didn't find a way to select the desired output. With this tool, I can only select the desired input. Never mind, answer from @szade1 solved the issue. Thank you for trying.

Labels
Top Solution Authors