Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Calculate Average of an Average Measure

$
0
0

Hi,

 

I have data for a number of team members showing the start time of visits they made to customers each day for the full year. These team members are divided into a number of teams.

 

I've been able to use the following DAX measure to find out the average start time for each team members, which can be used across each week of the year:

 

AvgStartTime = VAR Result = AVERAGEX ( VALUES ( 'TITO Data'[EntryDate] ), CALCULATE ( MIN ( 'TITO Data'[EntryTime]) ) ) RETURN IF ( NOT ( ISBLANK ( Result ) ), Result + TIME ( 0, 0, 0 ) )

 

This works out the earliest start for each day and takes an average.


This formula works fine when I have a table with each team member in a row but when I try to show what the average start time is across the entire team the results are not correct and I don't know why or how to fix it. Should I be trying to take an average of teh AvgStartTime measure or do I need to do something completely different?

 

Can anyone help?

 

mjholland


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>