Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
jiwaniakbar
Contributor II
Contributor II

Extrapolate Missing Data

I have a table that stores Primary Occupation for individuals. While most of them have data, some are missing. I would like to extrapolate the missing at summary level.

Example:

IndividualIDPrimary Occupation
1Business
2Business
3Employed
4Missing
5Business
6Missing
7Employed

 

If I create a Pivot of Profession

Business3
Employed2
Missing

2

Total

7

 

I want to re-distribute Missing between Business and Employed in same proportion as Business and Employed

So New count of Business = Business + Business*Missing/(Total-Missing) = 4.2  rounded to 4

So New count of job = Business + Business*Missing/(Total-Missing) = 2.8 rounded to 3

Business

4

Job

3

Total

7

1 Reply
Lauri
Specialist
Specialist

If you are OK with static values, I would do it during the data load. After you load the initial data, load the counts into a new table, and then join that to your first table to calculate the final counts in yet another new table.