- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

# Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 11:22 AM

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?

Solved! Go to Solution.

Accepted Solutions

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 03:38 PM

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)))

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 06:12 PM

Sorry, that was a silly mistake. Just change sumx to averagex

All Replies

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 12:30 PM

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.

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 02:04 PM

@MattAllingtonCould not find teh solution in your blog.

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 02:06 PM

If you post a sample workbook, I will take a look.

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 02:21 PM

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 03:38 PM

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)))

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 05:46 PM

Awsome

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 06:08 PM

@MattAllingtonChange in % is sum of all Percentages of Each Country. Example: Afghanistan Shows 14.41%. but actual average of 5 years should be

3.26 + 3.13 + 2.90 + 2.65 + 2.46 = 14.4 / 5 ( = 2.88). Is there a way to achive this?

Thanks

## Re: Average of %

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2018 06:12 PM

Sorry, that was a silly mistake. Just change sumx to averagex

## Re: Average of %

[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-25-2018 06:22 AM - edited 11-25-2018 06:24 AM

@MattAllingtonis it possible to also Rank by % Change in Population, when I use RankX it gives me 1 for every row.

I deally I would like user to provide # like Top 3, Top 5 etc.