Alteryx Designer Desktop Discussions

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

Filter current month

gigi10
6 - Meteoroid

Hello,

 

Appreciate if you can help me because I am trying to filter the previous month data from 1 whole year data. 

 

For example, this November, I need to pull the data from October only from column C.

 

gigi10_0-1669106167782.png

 

And for the next month once I run the Alteryx in Dec, I need to get the Nov data only.

 

Please help. Thank you in advance

 

PS:

Here's the sample data set - how about when I run it again for Nov data, I need to manually change the filter to 11.

What I am trying to achieve is once I run the Alteryx from the production it will automatically pick up the month I needed. T

 

Thank you so much!

Company CodeYearMonthname 1name 2volumevolume2Year
PPPP2022011111111NAME1101Oct-22
PPPP2022022222222NAME223Oct-22
PPPP2022103333333NAME332Oct-22
PPPP2022034444444NAME46261Oct-22
PPPP2022055555555NAME53261Oct-22
PPPP2022106666666NAME662561Oct-22
PPPP2022107777777NAME751Oct-22
18 REPLIES 18
DenisZ
11 - Bolide

Do you have a complete dataset, a bit hard to see what the screenshot says. 

 

However, it appears that column C is months, so you could extract some rows with a filter tool 

[Month] = 10 for example. 

 

 

 

 

 

ShankerV
17 - Castor

Hi @gigi10 

 

Yes, its possible.

 

Use the Formula tool or Date time tool to input the current date.

 

From the current date, you can derive the previous month.

 

Then use your existing workflow  to do the necessary salutations,

 

Kindly accept this solution if it provided a solution to your question.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @gigi10 

 

Date time now tool

 

ShankerV_0-1669106784036.png

 

Output: 

 

ShankerV_1-1669106799703.png

 

 

Many thanks

Shanker V

 

gigi10
6 - Meteoroid

Here's the sample data set - how about when I run it again for Nov data, I need to manually change the filter to 11.

What I am trying to achieve is once I run the Alteryx from the production it will automatically pick up the month I needed. T

 

Thank you so much!

Company CodeYearMonthname 1name 2volumevolume2Year
PPPP2022011111111NAME1101Oct-22
PPPP2022022222222NAME223Oct-22
PPPP2022103333333NAME332Oct-22
PPPP2022034444444NAME46261Oct-22
PPPP2022055555555NAME53261Oct-22
PPPP2022106666666NAME662561Oct-22
PPPP2022107777777NAME751Oct-22
ShankerV
17 - Castor

Hi @gigi10 

 

To apply the logic of identifying the previous month,

 

ShankerV_0-1669107072353.png

 

 

Output:

 

ShankerV_1-1669107088134.png

 

Many thanks

Shanker V

 

 

 

DenisZ
11 - Bolide

Unsure of what changes automatically, but does this solve the problem?

 

DenisZ_0-1669107230565.png

 

 

 

ShankerV
17 - Castor

Hi @gigi10 

 

From my solution, you can attach the existing workflow when it will change the input as previous month.

 

As it will depend on the workflow. Have gave the best generic solution which will fit all type of workflows.

 

I need the workflow so I can recommend where it needs to be edited to get the best outcome.

 

Let me know if I could help further more.

 

Many thanks

Shanker V

 

 

KrishnaChithrathil
11 - Bolide

@gigi10 

how about this?

KrishnaChithrathil_0-1669107503961.png

 

gigi10
6 - Meteoroid

Can I see your formula please? Thank you so much!

Labels