Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Aggregate Dates by Month

jasminesang
5 - Atom
Hello, I am looking to group and aggregate data by month so I can pivot it. Please see attached picture for quick view of what my data looks like vs. what i want it to look like. Thanks!
6 REPLIES 6
AlteryxUserFL
11 - Bolide

Here is an example 🙂 

 

 

Updated: Add new flow with text month instead of number. 

NickSm
Alteryx
Alteryx

Hey @jasminesang 

 

Can parse the date with a formula tool - the %B character returns just the month.

 

clipboard_image_0.png

MichalM
Alteryx Alumni (Retired)

@jasminesang 

 

A simple DateTimeParse would do as well assuming the dates are in Date format

 

 

dt-parse.png

 

 

tosinico
5 - Atom

Hi. What if I have a date like 01/27/2022 and I want to summarize data by month and years so in the chart I am able to see the years and the months?

Thanks

MichalM
Alteryx Alumni (Retired)

@tosinico 

 

You can first convert your date to yyyy-mm-dd format

 

MichalM_0-1670405647108.png

 

And then follow the same as above and add a year as well

 

MichalM_1-1670405695372.png

 

You can find all the different date formats available here
https://help.alteryx.com/20223/designer/datetime-tool#custom-format

tosinico
5 - Atom

 @MichalM thanks!

Labels
Top Solution Authors