Alteryx Designer Desktop Discussions

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

how to get the latest name from the Month

Niru
8 - Asteroid

Hello All,

 

How to pull the latest name from the Risk Rating field. i need to update same name for all the months.

kindly help me.

 

 

Data:

_close_of_business_dateIDRisk Rating
2020-10-31116560Heightened
2020-11-30116560Heightened
2020-12-31116560Expected
2021-01-21116560Expected

 

Expected Output:

_close_of_business_dateIDRisk RatingLatest_Risk Rating
2020-10-31116560HeightenedExpected
2020-11-30116560HeightenedExpected
2020-12-31116560ExpectedExpected
2021-01-21116560ExpectedExpected

 

 

Regards,

NK

13 REPLIES 13
Emil_Kos
17 - Castor
17 - Castor

Hi @Niru,


I have prepared a solution for you:

 

Emil_Kos_0-1611230106720.png

 

 

The output:

Emil_Kos_1-1611230130252.png

 

JosephSerpis
17 - Castor
17 - Castor

Hi @Niru I would used a Summarize tool to get the max date and then using a combination of a Join tool and append field tools it should provide the output you require. I've mocked up an example let me know what you think?

 

Latest_21012020.JPG

Niru
8 - Asteroid

@Emil_Kos  thanks for your reply 

 

With the below scenario current month i have two names from the Risk Rating i have to take height risk(Heightened ). Any Suggestions please. 

Data:

_close_of_business_dateRiskIDRisk Rating
2020-10-317937101435Expected
2020-10-317936101435Expected
2020-10-317938101435Expected
2020-11-307938101435Expected
2020-11-307936101435Expected
2020-11-307937101435Expected
2020-12-317938101435Heightened
2020-12-317937101435Expected
2020-12-317936101435Expected

 

Expected Output:

_close_of_business_dateRiskIDLatest_Risk Rating
2020-10-317937101435Heightened
2020-10-317936101435Heightened
2020-10-317938101435Heightened
2020-11-307938101435Heightened
2020-11-307936101435Heightened
2020-11-307937101435Heightened
2020-12-317938101435Heightened
2020-12-317937101435Heightened
2020-12-317936101435Heightened

 

Regards.,

NK

Emil_Kos
17 - Castor
17 - Castor

Hi @Niru,

 

I have added an additional sort option:

 

Emil_Kos_0-1611230986406.png

 

If you have more rules that you need to take into consideration please let me know.

 

 

 

 

Niru
8 - Asteroid

Thanks a lot this solution work for me 

Niru
8 - Asteroid

@Emil_Kos  One more Quick doubt 

 

how can i know if status got changed from Last month, if changes i would like to display true or False.

 

Regards,

NK

Emil_Kos
17 - Castor
17 - Castor

Hi @Niru,

 

This wasn't so quick for me 😛 

 

What I am basically doing is I am changing if for the last day in the previous month we have the same statuses if for the current month. 

 

Emil_Kos_0-1611234851806.png

In order to do so I am using Concat function:

 

Emil_Kos_1-1611234911184.png

 

 

 

Niru
8 - Asteroid

@Emil_Kos Thanks a Lot 

Niru
8 - Asteroid

@Emil_Kos Thanks a lot for your workflow, Here i want to know is it possible to display Risk names change month. when i want changes Expected to Heightened. please suggest me. 

Labels