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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
sure19
Helper II
Helper II

average

Hello,

 

Average by Region is correct, but the average of the average shown is wrong. Someone please help, been trying for days now. average.png

1 ACCEPTED SOLUTION

hi All,

 

Sorry for the delay, what i did was calculated individual average, earlier i had used the figures which had already averaged and so the system was taking the total of the averages.  what i did was created new calculated columns and then selected it in the report and it worked fine.

 

 example: Elec/TEU= sum(ENG2011[Elec])/sum(ENG2011[Throughput])*1000

 

thanks for all the help.

 

regards

 

SK

 

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

Try this MEASURE

 

Average Measure =
IF (
    HASONEVALUE ( Table[Region] ),
    DIVIDE (
        SUM ( Table[Total Amount] ),
        CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[Region] ) ),
        0
    ),
    DIVIDE ( SUM ( Table[Total Amount] ), DISTINCTCOUNT ( Table[Region] ), 0 )
)

Good Luck! Smiley Happy

 

If this doesn't work - you have to tell us how your data is organized?

 

Is each row per Region a single repair?

 

That's what the above is calculating - sum total amount per region and divide by number of repairs (assuming 1 per row)

 

then in the total row it will sum overall total amount and divide by distinct number of regions (which is what I assumed you want)

hi All,

 

Sorry for the delay, what i did was calculated individual average, earlier i had used the figures which had already averaged and so the system was taking the total of the averages.  what i did was created new calculated columns and then selected it in the report and it worked fine.

 

 example: Elec/TEU= sum(ENG2011[Elec])/sum(ENG2011[Throughput])*1000

 

thanks for all the help.

 

regards

 

SK

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors