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
Anonymous
6 years agoNot applicable
Sure thing!
Measure 13 = var testmeasure1 = AVERAGE('CSDB project_metric'[Work at Height])
RETURN
IF(ISBLANK(testmeasure1),0,testmeasure1)
Measure 14 =
VAR TABLE1 = SUMMARIZE('CSDB project','CSDB project'[id],"Work at height test",[Measure 13])
return
if(HASONEVALUE('CSDB project'[id]),[Measure 13],AVERAGEX(TABLE1,[Work at height test]))
Anonymous
6 years agoNot applicable
Any luck with this? Is there anything else I can provide?
Again, your help is greatly, greatly appreciated.