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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ponchibonosrzt
Frequent Visitor

Why does the table sum the values in one case and average them in another?

Hi. 

I have this Table

ponchibonosrzt_0-1698707435575.png

The messures are:

Consumo Total = SUM(Anexar1 [kWh])

Consumo HHogar Unificado =   ([Consumo Total]/ COUNTROWS(Anexar1))/0.4013888

 

Why in Total does sum the values for "Total consumption" and average for "Consumo hogar unificado"?  I would like to be added in both cases.

 

The other question is: how to make a measurement that sums the "Consumo hogar unificado" data for each "Subestación".

I would like to have a card with this measurement.

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
ponchibonosrzt
Frequent Visitor

I use this formula:  

SUMX ( VALUES ( Table1[ColABC] ), [AvgMeasure] )

 

Works fine!

View solution in original post

4 REPLIES 4
ponchibonosrzt
Frequent Visitor

I use this formula:  

SUMX ( VALUES ( Table1[ColABC] ), [AvgMeasure] )

 

Works fine!

Glad it worked!

 

 

sevenhills
Super User
Super User

 

I see that you are trying to do is Sum of Averages. You can do as below:

 

 

AVG_SITE = SUMX(
    SUMMARIZE('Table', 'Table'[name], "L1Value", AVERAGE('Table'[ValueColumn])),
    [L1Value])

 

 

 

Change your average column measure and see if it works; 

Replace with your names, as I dont know your language, providing here so that you can change it

 

 

Consumo HHogar Unificado = SUMX(
    SUMMARIZE('YourTableName'
            , 'YourTableName'[Subestación]
            , "L1Value", ([Consumo Total]/ COUNTROWS(Anexar1))/0.4013888),
    [L1Value]) 

 

 

 

Hope this helps!

Thanks for the answer, let me check. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors