I am making a display to show peak power usage throughout the current month, and one of things that I would like to have is a plot that shows the power usage on the day of the peak usage.
For example, if I have the expression TimeStamp(TagMax('Power Received',bom('*'),'*')) it returns 7/12/2016 7:38:38 AM,
so I want a trend that plots Power Received, starting at 12:00AM on 7/12/2016 and ending at 12:00AM on 7/13/2016.
However, the value of TimeStamp(TagMax('Power Received',bom('*'),'*')) will change throughout the month each time there is a new maximum, so I want the plot times to change as well.
For example, if there is a new maximum tomorrow (7/16/2016), I want the plot time to plot Power Received from 12:00AM on 7/16/2016 to 12:00AM on 7/17/2016.
So, how would I go about doing this? It seems like for the start and end time have to be a simple time reference like '*-1d' and '*'.
The reason I am having trouble is because it does not seem possible to have a more complex expression or use a tag value as a start or end time.