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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is 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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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