Forum Discussion
Anonymous
6 years agoNot applicable
Dealing with missing rows in underlying data, and adding 0 values
To put it simply our database is calculating 40 metrics for thousands of projects on a daily basis. Each row in the database has project ID, metric type, value, and date. To save on performance our d...
- 6 years ago
This looks like a measure totals problem. Very common. See my post about it here: 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
Greg_Deckler
6 years agoCommunity Champion
Anonymous - OK, what column are you using in the axis of your Line chart then?
- Anonymous6 years agoNot applicable
I'm using the date column, more specifically the date hierarchy with months, and years.
- Greg_Deckler6 years agoCommunity Champion
Anonymous - OK, can you post the measure formulas that we created? I should be able to tell what is going haywire if I have those.
- Anonymous6 years agoNot applicable
Sure thing!
Measure 13 = var testmeasure1 = AVERAGE('CSDB project_metric'[Work at Height])RETURNIF(ISBLANK(testmeasure1),0,testmeasure1)Measure 14 =VAR TABLE1 = SUMMARIZE('CSDB project','CSDB project'[id],"Work at height test",[Measure 13])returnif(HASONEVALUE('CSDB project'[id]),[Measure 13],AVERAGEX(TABLE1,[Work at height test]))