Start Free Trial

Alteryx Designer Desktop Discussions

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

Creating New column

Sarath27
8 - Asteroid

Hi All,

 

I need a help in this situation.

 

 

I have three distinctive level values 1,2 & 3. For each run, any of these level values might not come. I have a formula which sums Level 1 + Level 2 + Level 3.

 

So in my case, Level 3 is not coming for this run, so formula tool throws an error as Level 3 is missing.  I want to write a dynamic formula where if any Level 1, 2, 3 is missing then it needs to create a new column and populate null values in that column. It seems to be really complex.

 

Pls kindly help.

 

 
 

 

1 REPLY 1
flying008
15 - Aurora

Hi, @Sarath27 

 

2 ways of dynamic solution for you:

 

A- If field not exist, it still can normal calculation to get result, but don't add new columns for miss.

 

录制_2023_10_14_08_42_49_498.gif

 

B- It create all form to calculate for all field to union at first, then flow your formula to get output.

 

 录制_2023_10_14_09_00_03_396.gif

 

Input     
RegionProductLevel-1(External Assets)Level-2(External Assets)  
AmericasBond - Corporate1850916943959  
AmericasMargin Lending 4077551233  
ClosedMargin Lending 0  
EMEABond - Corporate 17983329  
EMEAGovernment bond - Other - Europe-19740412375890  
UNTest12  
      
Output -A     
RegionProductLevel-1(External Assets)Level-2(External Assets)External Assets 
AmericasBond - Corporate185091694395916962468 
AmericasMargin Lending 40775512334077551233 
ClosedMargin Lending 00 
EMEABond - Corporate 1798332917983329 
EMEAGovernment bond - Other - Europe-1974041237589012178486 
UNTest123 
      
Output -B     
RegionProductLevel-1(External Assets)Level-2(External Assets)Level-3(External Assets)External Assets
AmericasBond - Corporate1850916943959016962468
AmericasMargin Lending0407755123304077551233
ClosedMargin Lending0000
EMEABond - Corporate017983329017983329
EMEAGovernment bond - Other - Europe-19740412375890012178486
UNTest1203
Labels
Top Solution Authors