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

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
binuacs
21 - Polaris

@itsmeanuj One way of doing this

 

binuacs_0-1685373379978.png

 

Labels
Top Solution Authors