Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Aggregate Non-Nulls to overwrite nulls

csh8428
11 - Bolide

I have a data-set that is made up of "accounts" and the dates at which various states of implementation are completed.

I am trying to aggregate them so that each account only has 1 row per account. 

The data can have  the same account undergoing 2 different implementations to the unique key and/or grouping is Account ID and Start date. If any of the rows in a column of the grouping have a non-null value, then all null fields should be changed to that value. 

I was toying with various multi-row formulas, but I can't quite get it.

 

The data looks like this

Account IDStart DateImplementationDevelopmentStagingProduction
ABC11/1/2020NullNullNullNull
ABC11/1/2020NullNull7/1/2020Null
ABC11/1/2020Null6/1/2020NullNull
ABC11/1/20205/1/2020NullNullNull
ABC9/1/2020NullNullNull6/1/2020
ABC9/1/2020NullNull5/1/2020Null
ABC9/1/2020Null4/1/2020NullNull
ABC9/1/20203/1/2020NullNullNull

 

I'm trying to get it o look like this

Account IDStart DateImplementationDevelopmentStagingProduction
ABC11/1/20205/1/20206/1/20207/1/2020Null
ABC9/1/20203/1/20204/1/20205/1/20206/1/2020

 

I've attached the same sample data-set as noted if needed.

 

Thanks for any help!

 

Craig

3 REPLIES 3
BradWerner
11 - Bolide

Hi @csh8428,

 

You can turn all of your date columns into dates and use the Summarize tool to grab the latest dates. See the attached workflow. 

 

BradWerner_0-1600271370489.png

 

This assumes that you will mainly have each row communicate only one stage date (Implementation, development, etc) for each Account ID/Start Date combination. If you have more than one row per stage date, this will always take the latest one. Just mentioning in case this occurs at all in your data.

 

Let me know if this works for you or if you have more questions.

 

Thanks!

Brad

Amarendra
10 - Fireball

 @csh8428 Here is one solution, PFA

 

Capture.PNG

csh8428
11 - Bolide

That worked..Thanks!

Labels