Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
t-gilchrist
Contributor III
Contributor III

Aggr expression in Combo chart line graph displaying last "date" instance instead of first

Hello all, 

This is a sample table of my data

EquipmentDowntimeStartDowntimeEndShiftStart
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/20/2019 10:30:00 AM
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/20/2019 10:30:00 PM
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/21/2019 10:30:00 AM 
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/21/2019 10:30:00 PM


Originally the formula used to count occurrences was as follows...

Count(Aggr(Count(ShiftStart),Equipment,DowntimeStart,DowntimeEnd))

But once used in a line graph I noticed in instances where the downtime spanned multiple days (like the table above) it was assigning the occurrence to the last day instead of the first day it occurred.

temp.png

I thought this was possibly because of the order in which the data was loading into the table so I modified the formula to the one below but I'm still getting the same result.

Count( Aggr( Min(ShiftPlannedStart),Equipment,DowntimeStart,DowntimeEnd))

Any suggestions or explanation to why this may be happened is appreciated

Thanks 

 

1 Reply
t-gilchrist
Contributor III
Contributor III
Author

ShiftDate is also relevant (Combo chart X Axis)

EquipmentDowntimeStartDowntimeEndShiftStartShiftDate
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/20/2019 10:30:00 AM4/20/2019 12:00:00 AM
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/20/2019 10:30:00 PM4/21/2019 12:00:00 AM
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/21/2019 10:30:00 AM 4/21/2019 12:00:00 AM
Equipment014/20/2019 03:58:38 PM4/21/2019 10:38:05 PM4/21/2019 10:30:00 PM4/22/2019 12:00:00 AM