Forum Discussion
Anonymous
3 years agoNot applicable
Using averages with Time
Im having trouble calculating averages such as: average # of users per hour, average # of users per day, average quantity per hour, average to LPNs per hour. I am currently using this formula but am getting unreal results back:
Distinct Operator average per Day =
AVERAGEX(
KEEPFILTERS(VALUES('2022ChalkHillPickerData'[Date])),
CALCULATE(DISTINCTCOUNT('2022ChalkHillPickerData'[User])
))
Any help would be greatly appreciated.
3 Replies
- Greg_DecklerCommunity Champion
Anonymous Try:
Distinct Operator average per Day = VAR __Table = SUMMARIZE( '2022ChalkHillPickerData', [Date], "Value",COUNTROWS(DISTINCT('2022ChalkHillPickerData'[User])) ) RETURN AVERAGEX(__Table, [Value])- AnonymousNot applicable
Do think that same concept will work for time based calculations as well?
- AnonymousNot applicable
Using the same formula, but adapted to time and looks like this:
Distinct Operator average per Hr =AVERAGEX(KEEPFILTERS(VALUES('2022ChalkHillPickerData'[Time])),CALCULATE(distinctcount('2022ChalkHillPickerData'[User])))