Alteryx Designer Desktop Discussions

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

Replacing empty value with previous value with group by criteria

reignM
7 - Meteor

Hi Hello. I have this table record below. 

 

IDDigitalIndustrialIntralogistics
6129740673dBig DataMachinery 
6129740673dCloud Computing  
6129740673dCyber Security  
63018356c37 3D ModellingLogistic IT
63018356c37  Space Solution
69562a28468Product Development  

 

I would like to fill the empty rows with the value above while grouping by the ID. So for example, 'Machinery' to exist on all 3 rows of 'Industrial' where 'Digital' exists for ID 6129740673d . Similarly, for 'Industrial' column for ID 63018356c37.

Hence: 

 

IDDigitalIndustrialIntralogistics
6129740673dBig DataMachinery 
6129740673dCloud ComputingMachinery 
6129740673dCyber SecurityMachinery 
63018356c37 3D ModellingLogistic IT
63018356c37 3D ModellingSpace Solution
69562a28468Product Development  

 

I tried using Multi-Row Formula with reference to https://community.alteryx.com/t5/Alteryx-Designer-Discussions/replace-null-value-with-last-previous-... . It works but it only affects one column each time.

 

' if IsEmpty ([Digital]) then [Row - 1: Digital] else [Digital] endif '

 

Considering that I have more than 8 columns, I'm hoping there is a more feasible approach. 

2 REPLIES 2
AkimasaKajitani
17 - Castor
17 - Castor

Hi @reignM ,

 

In this case, to proceed with some fields as the same process, you can do it to have the data on the vertical using Transpose tool.

 

AkimasaKajitani_0-1647835615205.png

 

This is the result and setting of Multi-row formula tool.

 

AkimasaKajitani_1-1647835642807.png

 

After that, you can do it to the original form using Cross Tab tool.

 

AkimasaKajitani_2-1647835721455.png

 

reignM
7 - Meteor

It works! Thank you very much!

Labels