Forum Discussion
Average
- 6 years ago
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/63376Also, 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/547907For 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
Anonymous
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