Now that it's live, don't forget to accept your certification badge on Credly today! Learn more here.
We are currently experiencing an issue with Email verification at this time and working towards a solution. Should you encounter this issue, please click on the "Send Verification Button" a second time and the request should go through. If the issue still persists for you, please email support@alteryx.com for assistance.

Alteryx Analytics Hub

Find answers, ask questions, and share expertise about Alteryx Analytics Hub.
SOLVED

Dynamically inserting a new month to existing data (set)

RajatK
7 - Meteor

Hi,

 

I am in the middle of my project and stuck at a point where I need some assistance. 

The project I'm working on follows the April-March calendar, i.e. April is the 1st month, May is the 2nd, son on & March is the 12th month of the fiscal year. 

My data looks like:
RajatK_1-1633960469900.png


As you can see the columns naming convention- Apr 20, May 20 and so on till Mar 20.(Note: 20 here is the fiscal year of the client), when it reaches Apr it changes to Apr21, May21 and so on (these are columns directly from the previous file, need to automate the insertion of months' columns going forward using Alteryx).

The need is to include (insert) all months of the fiscal year dynamically into my workflow, i.e. since we are in October - the ask is to insert columns from October through Mar (21 Fiscal year) into the workflow. 

Example: Oct21, Nov21, Dec21, Jan21, Feb21, Mar21 to be included into the workflow. 

Once we reach April. Apr22, May22, June22, and so on till Mar22 gets added to the workflow dynamically. 

Please help me out with this! Thank you in advance!


Attaching the file for your reference.  

8 REPLIES 8
Joe_Lipski
13 - Pulsar
13 - Pulsar

Hi @RajatK 

 

There are potentially a few different ways to do this, but to do this dynamically and for the long term, I think it will be easiest if you have a reference/lookup table which contains your fiscal calendar and the actual calendar.

 

The two methods you can try are:

 

1) The Dynamic Select Tool - Here you can write a formula to select fields based on your expression.

2) Transpose & Cross Tab - Here you would transpose the data to get it into column format and then filter the name column based on your date logic which would only keep dates for the correct fiscal year then cross-tab the data back into the correct format.

 

Thanks,

Joe

 

Joe Lipski
RajatK
7 - Meteor

@Joe_Lipski , if you don't mind, could you PLEASE help me with the workflow for the same. 

I'm new to Alteryx, and have been trying this for a while now. 

 

Thank you in advance!! 

Joe_Lipski
13 - Pulsar
13 - Pulsar

Does the real date of October 2021 = Fiscal year date October 2020?

Joe Lipski
RajatK
7 - Meteor

@Joe_Lipski , thanks for responding. 

 

Fiscal Year 2020 would include the below months of the normal calendar:

April 2020, May 2020, June 2020, July 2020, Aug 2020, Sept 2020, Oct 2020, Nov 2020, December 2020, January 2021, February 2021 and March 2021. 

 

And, so for fiscal year 2021 the months of the normal calendar would include:

April 2021, May 2021, June 2021, July 2021, Aug 2021, Sept 2021, Oct 2021 [we are currently here as the date stands], Nov 2021, December 2021, January 2022, February 2022 and March 2022.

 

Thank you, again! 

 

Regards,

Rajat

 

Joe_Lipski
13 - Pulsar
13 - Pulsar

Thanks, I thought that would be the case. Please take a look at the attached and let me know if it helps.

Joe Lipski
RajatK
7 - Meteor

Thank you so much, @Joe_Lipski !
I shall try to implement this and let you know if this works. 😄

Joe_Lipski
13 - Pulsar
13 - Pulsar

@RajatK how did you get on?

Joe Lipski
RajatK
7 - Meteor

Hey! I used the same and works well! Thank you again!

Labels