Forum Discussion
Anonymous
7 years agoNot applicable
Average of %
Hello,
Is there a way to get average of a meassure. I have a growth rate YoY by countries, is it possible to get AVG Growth Rate Yr over Year by Country?
You need a matrix, not a table.
Then you need your formula to return nothing in year 2, otherwise your 100% in year 2 will skew the numbers. Here is a formula
Prct Change Population = sumx(VALUES(Calender[Year]), Var PY = [Tot Pop Prv Yr] return if(PY<>0,DIVIDE(([Total Pop] - [Tot Pop Prv Yr]),[Total Pop],0)))Sorry, that was a silly mistake. Just change sumx to averagex
10 Replies
- MattAllington
Community Champion
Yes it is possible. The cause is a bit hard to understand when you first start out. I have written a blog SUM vs SUMX that explains it.
- AnonymousNot applicable
MattAllingtonCould not find teh solution in your blog.
- MattAllington
Community Champion
If you post a sample workbook, I will take a look.