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
paul_jones
Frequent Visitor

Sum of Average Value

 

I need to SUM the AVERAGE Machine Value of each Site for the Company.  In the sample below, it should return 250.  Any assistance would be appreciated.

CompanySiteMachineValue
CAS1M1100
CAS1M2100
CAS1M3100
CAS2M4150
CAS2M5150
CAS2M6150
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @paul_jones ;

Make a little modification.

AVG_SITE = SUMX(
    SUMMARIZE('Table', 'Table'[name], "1", AVERAGE('Table'[print_last_month])),
    [1])

The final show:

vyalanwumsft_0-1665735245537.png


Best Regards,
Community Support Team _ Yalan Wu
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

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @paul_jones ;

Make a little modification.

AVG_SITE = SUMX(
    SUMMARIZE('Table', 'Table'[name], "1", AVERAGE('Table'[print_last_month])),
    [1])

The final show:

vyalanwumsft_0-1665735245537.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PERFECT!  I needed MAX instead of AVERAGE but it worked flawlessly.  Thank you.

Washivale
Resolver V
Resolver V

Hi @paul_jones , Based on the data you provided and requirement answer would be 25637.5

 

Washivale_0-1665688144630.png

 

to get this answer you would write following dax

 
AVG_SITE = SUMX(
    SUMMARIZECOLUMNS( 'Table (2)'[name], "GroupScore", AVERAGE('Table (2)'[print_last_month])),
    [GroupScore]
)
Washivale
Resolver V
Resolver V

Hi @paul_jones ,

 

check this out

AVG_SITE = SUMX(
    KEEPFILTERS(VALUES('TableTest'[Site])),
    AVERAGE(TableTest[Value])
)
 
Regards,
Washivale

Thank you for the reply.  Unfortunately, it did not return the correct value.  I think I need max instead of average which did not work either.  Below is actual data.  The answer should be 27836.

monthnameprinterprint_last_month
April ColumbusD1036850
April ColumbusD1146850
April ColumbusD1266850
April ColumbusD1396850
April ColumbusD144934
April ColumbusD3776850
April LouisvilleD119934
April LouisvilleD120934
April LouisvilleD389934
April Grand RapidsD1401453
April Grand RapidsD2601453
April JeffersonvilleD2322041
April IndianapolisD3205482
April IndianapolisD3215482
April IndianapolisD3465482
April IndianapolisD5785482
April IndianapolisD5795482
April IndianapolisD5805482
April NashvilleD3427717
April NashvilleD3907717
April Des MoinesD388934
April Des MoinesD4103359

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.