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
mvanhalum
Regular Visitor

Adding average column

Hi,

 

I am completely new to PowerBI and am struggling to find a way to get an average column behind my Total (on the year line).

 

I have come that far that I can do an average, but that would give me an average per year and month. I have tried to follow some of the examples here and on the web, but get no joy. So I know that it is feasible. However on some examples I already noticed a mistake, that where the cell is empty, it averaged the 2 filled cells, but did not consider the blank cells where there was no sales.

 

I would also need the average in the end to do some calculations, but this I can manage through adding a calculated column in my sheets.

mvanhalum_0-1669217932788.png

 

Who can help me out?

2 REPLIES 2
mvanhalum
Regular Visitor

Thank you very much for the swift answer.

 

If I do my best to follow, I get the below. I get my averages in each column, and not just one and the outcome of the averages is only devided by the number of values found and not the total amount of months.

mvanhalum_0-1669296232324.png

Basically what is needed, is 1 column saying: Total Quantity devided by 14 months.

 

Should I build a new calculating tabel where I say: sum ( quantity) / 14? Where no months are given, only the totals?

amitchandak
Super User
Super User

@mvanhalum , Based on what I got

if you want avg when total and sub total to be displayed then try

 

if( Not Isinscope(Table[Month]) ,

Averagex(Values(Table[Month Year]), [Measure])  , [Measure] )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 Fabric 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.