Alteryx Designer Desktop Discussions

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

Missing Data Generation trai

awanishyadavv
Meteoroid

Hi

 

I want to generate missing data if data is not contineously missing.........for example

 

YearCountry1Country2Country3
1586NullNull
2452NullNull
3415NullNull
4325475Null
5958856985
6Null954965
7758Null856
8NullNull991
92451452456

 

For country 1 data is missing in between two valid points, so i want to replace with average growth rate in values.

 

For country 2 data is data is missing for 1,2 &3 year since this data is missing from starting year i do not want to replace it with any value. but for year 7 & 8 data is not missing from starting year then i want jto replace with average growth rate in values.

 

Similarly for country 3 data is missing from starting year then i do not want to replace it with any value.

4 ANTWORTEN 4
binuacs
Arcturus

@awanishyadavv @The country field values are growth rates?

awanishyadavv
Meteoroid

 Growth Per year = (end year - starting year) / starting year.
Average Growth rate = (sum of Growth per year) / no of growth per 

 

 

Ex----- 

YearCountry1Growth rate per year(Country 1)Country2Growth rate per year(Country 2)Country3Growth rate per year (Country 3)
1586(452-586)/586Null Null 
2452(415-452)/452Null Null 
3415(325-415)/415Null Null 
4325(958-325)/325475 Null 
5958 856 985 
6Null 954 965 
7758 Null 856 
8Null Null 991 
9245 1452 456 
binuacs
Arcturus

@awanishyadavv I assumed the country fields have the growth rates,

image.png

awanishyadavv
Meteoroid

Although I provided only minimal data, you worked and gave me some insight ,
Referencing your solution I was able to resolve the complete database.

Thankyou, love from India

Beschriftungen