The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Latest Month in Qtr

itsmeanuj
7 - Meteor

Hi Guys, 

 

I am stuck with the logic of the latest month in the quarter. So I want to show sales of the latest available month in a quarter including the past data. My Sample data (see month column only looks like this. e.g.

 

1. For Q4'22 , the flag would be 1 for Dec'22 and 0 for the other 2 months since we have Dec data. 

2. For Q2'23, the flag would be 1 for May'23 and 0 for Apr'23 since we have data only till May'23

 

MONTHQtr Flag (Desired Output)
10/1/20220
11/1/20220
12/1/20221
1/1/20230
2/1/20230
3/1/20231
4/1/20230
5/1/20231

 

Thanks,

Anuj

1 REPLY 1
binu_acs
21 - Polaris

@itsmeanuj One way of doing this

 

binuacs_0-1685373379978.png

 

Labels
Top Solution Authors