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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Average

Dear Community, 

 

I am completly confused. 

 

I like to get the average of a week, but my total average is not correct see at the example:

Coffeeuser93_0-1594915563871.png

 If I calculate it: (7.2+66.9+62.9+45)/4= 45.5

 

What am i doing wrong? 😕

 

Thank you for you help 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

This looks like a measure totals problem. Very common. See this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

For your case, just use AVERAGEX instead of SUMX like above in the measure like this

 

New measure =
VAR __table = FILTER(SUMMARIZE('Table1',[Anlage],[Datum]"__value",[zel]),[__value]<>0)
RETURN
IF(HASONEVALUE(Table1[Name]),[m_Single],AVERAGEX (__table,[__value]))

 

If you still have problem, please share your sample pbix file for us have a test.

 

 

Regards,

Lin

Community Support Team _ Lin
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

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

This looks like a measure totals problem. Very common. See this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

For your case, just use AVERAGEX instead of SUMX like above in the measure like this

 

New measure =
VAR __table = FILTER(SUMMARIZE('Table1',[Anlage],[Datum]"__value",[zel]),[__value]<>0)
RETURN
IF(HASONEVALUE(Table1[Name]),[m_Single],AVERAGEX (__table,[__value]))

 

If you still have problem, please share your sample pbix file for us have a test.

 

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

ZLE is a measure. And I would like the average per Week of the ZLE without zeros

 

The calculation looks like that: 

ZLE (%) = if(DIVIDE([prod. Menge],[theoret. Menge])>0,DIVIDE([prod. Menge],[theoret. Menge]),0)
 
1. prod. Menge = SUMX('MobiSysMenge','MobiSysMenge'[CheckRelativeFactor])
2.  CheckRelativeFactor = IF(ISBLANK(RELATED('StückzahlenFaktor'[factor])),'MobiSysMenge'[Relative],RELATED('StückzahlenFaktor'[factor])*'MobiSysMenge'[Relative])
3. theoret. Menge = AVERAGE(Solltakt[oeeTargetSpeed])*sum(AuftragsFlow[Dauer [Minuten]]])
Fowmy
Super User
Super User

@Anonymous 

_Average  = CALCULATE(
AVERAGE(Table[zle]),
Table[zle]>0)

If you are satisfied with my answer, please mark it as a solution so others can easily find it.

Don't forget to give KUDOS ? to replies that help answer your questions


Subscribe to ExcelFort: Learn Power BI, Power Query and Excel
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous ,  seems like you need simple averages , try like

averageX(summarize(Table, Table[anlage],table[datum],"_1",[zie]),[_1])

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.