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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cboone27
New Member

Adding your Averages together when selecting multiple filters

Hi, 

 

I currently averaging all of my data by month for a certain area, but when I try to filter to multiple areas, I want them to aggregate and not maintain the true average. 

 

Area         Month         Amount

TX               Jan-19         10

TX              Feb-19         20

OK              Jan-19         30

OK              Feb-19        40

 

I have the "area" as a filter, and I am averaging the amount

 

TX = 15

OK = 35

 

When, I select multiple filters to see how much I am spending across both, I would like them to aggregate together, so my answer is "TX average + OK average = 50".

I am currently getting the average of the 2 areas (15+35)/2 = 25.

 

Any help?

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @cboone27  ,

Try this out:

MEASURE 1 = 
SUMX( 
         SUMMARIZE(    Table3 , 
                       Table3[Area] , 
                       "AVERAGE BY AREA" , AVERAGE( Table3[Amount] ))
  ,   [AVERAGE BY AREA] )

This is the outcome:
Capture.JPG

Let me know if that worked for you.
Cheers,
Rob

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @cboone27  ,

Try this out:

MEASURE 1 = 
SUMX( 
         SUMMARIZE(    Table3 , 
                       Table3[Area] , 
                       "AVERAGE BY AREA" , AVERAGE( Table3[Amount] ))
  ,   [AVERAGE BY AREA] )

This is the outcome:
Capture.JPG

Let me know if that worked for you.
Cheers,
Rob

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

How many expressions can the SUMX measure handle? 

 

For example if I also wanted to add in "type". Where if I added another filter for Type, it would aggregate by area AND by type.

 

Capture.PNG

This works perfectly! Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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