Forum Discussion
Looking to solve a value with measure.
I have a value of "engine hours" reported daily. I am looking for a measure to tell me the avg number of hours this machine is using in a day. The measure I am using is erroring out. Any help would be greatly appreciated.
5 Replies
- mdgene
Helper I
Hi , could you be more detailed with the 'The measure I am using is erroring out'
- AnonymousNot applicable
I tried
last date (hours) - First date (hours) / 5 (working week).
However, it says first date and last date are a yes/no option.- mdgene
Helper I
It depends on a lot of things I cant see. but have a look. if you have a data set in this format
then simply create your measures
YestedayHours = SUM('Hours Table'[Hours])TodaysHours = SUM('Hours Table'[Hours])and you can do your calculation on it usingcalcavg = DIVIDE(([YestedayHours] - [TodaysHours]),5,0)orCalcavg2 = AVERAGE('Hours Table'[Hours])but it depends on your data structure and what you are trying to achieve.
Thank you
- AnonymousNot applicable
This is my table. I'm looking to have an average of the difference per day/week.
- mdgene
Helper I
Try using the divide function