The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Replace missing value with many subgroup
XiaoHui_0206
Member Posts: 2 Learner I
Hello!
Countries Year Value
Malaysia 2015 1
Malaysia 2014 2
Malaysia 2013 3
Malaysia 2012 4
Malaysia 2011 ?
Malaysia 2010 ?
Malaysia 2009 7
Malaysia 2008 ?
Malaysia 2007 8
Malaysia 2006 9
Malaysia 2005 10
Malaysia 2004 ?
Indonesia 2015 1
Indonesia 2014 2
Indonesia 2013 3
Indonesia 2012 ?
Indonesia 2011 5
Indonesia 2010 6
Indonesia 2009 7
Indonesia 2008 ?
Indonesia 2007 8
Indonesia 2006 9
Indonesia 2005 10
Indonesia 2004 ?
I want to find the average of all countries, I have 190+ countries, but when I use the replace missing value operator, it divides the value by all countries' values, which is not accurate. How I can find the average of all countries by only dividing the particular countries?
Exp:
Malaysia =(1+2+3+4+7+8+9+10)/8
Here is my dataset, thanks for helping me!
0
Answers
Group into Collection by country
Dortmund, Germany
Other option is using the loop values operator, filtering by attribute, extracting the average of this attribute and finally replacing the average in each group.
Dortmund, Germany