excel - How To Calculate The Average Of Unique Values In One Column Using DAX Query? -


i want calculate average of distinct values in 1 column. have column having sales values . 2 2 3 3 4 4 5 5 want distinct value average ((2+3+4+5)/8 ) . distinct values divided total number of values . result should 1.8 . in advance .

you have "excel" tag, want in excel? if data in a1:a10 can use array formula

=sum(if(match(a1:a10,a1:a10,0)=row(a1:a10)-min(row(a1:a10))+1,a1:a10))/count(a1:a10)

confirmed ctrl+shift+enter


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -