Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Missing Data Generation trai

awanishyadavv
7 - Meteor

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 REPLIES 4
binuacs
21 - Polaris

@awanishyadavv @The country field values are growth rates?

awanishyadavv
7 - Meteor

 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
21 - Polaris

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

image.png

awanishyadavv
7 - Meteor

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

Labels