Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
TimHuijsmans
Regular Visitor

DAX for averages on a sum of slicer selection

I have 4 timeseries with a date, region and value column in a single table where the region column identifies the timeseries. I want to plot the values as a line chart. I have a slicer that allows me to filter the regions and diplay them as summed values looking like this:

 

TimHuijsmans_0-1693299501778.png

TimHuijsmans_1-1693299521291.png

 

Now I want to be able to display annual averages of the value column in another visual below to get the following:

TimHuijsmans_2-1693299576501.png

I calculate the yearly average with a measure as follows:

```

YearlyAverage =
AVERAGEX(
    SUMMARIZE('pbi_example', 'pbi_example'[Start of Year]),
    AVERAGE('pbi_example'[value])
)
```
This works for a single selection as shown for the LATAM example above. However, when I select multiple regions, instead of getting an average of the sums of the values on a date per region, I just get an average for the set of regions as you can see here:
TimHuijsmans_3-1693299711691.png

 

Can anyone help me out with a DAX that first sums the values per month for the selected regions, and then gets the yearly average?

 

Thanks a lot!

 

1 REPLY 1
amitchandak
Super User
Super User

@TimHuijsmans , Try like

 

YearlyAverage =
AVERAGEX(
Values( 'pbi_example'[Month Year]),
calculate(Sum('pbi_example'[value]) )
)

 

Avg of Sum : https://youtu.be/cN8AO3_vmlY?t=22980

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors