Forum Discussion
Getting an Average Point In Time by Date and Individual
You've got the measures backwards compared to the tables. Table 1 should be the fields 'Date Only' and 'Average First Scan by Person' on it. Table 2 should have the fields 'Badge Number' and 'Average First Scan by Date'
Like this?
Because these are still only the min values. I know this because I am that highlighed badge on the right, I usually arrive around 6:45 AM and am generally the first one in the building that 6:18 is absolutely my earliest.
Most people don't get in until 8 or 9 so I know those are Min values in table 1 as well.
- Anonymous2 years agoNot applicable
Yes those tables are now correctly set up for the design of the measures. If you are unsure if the answers are correct, grab 1 dates worth of data from the data table (copy table will do this). Paste into Excel and do some manual checks. I.e. find the minimums for each badge manually and see what the answer is.
If thats still not working, one additional trick to try is to create a base measure that handles the MIN function, call that measure from within your other two measures. Sometimes the engine hates running aggregations directly.
What i mean is writing a new measure like
Minimum Badge Scans = MIN('BadgeScans'[Time Only]) Average Forst Scam by Day = FORMAT(AVERAGEX( VALUES('BadgeScans'[Date Only], [Minimum Badge Scans] ), "HH:MM:SS")