How to get only today’s data points to be visualized in a graph

How to query only today’s data points so I can visualize in a graph starting from 0AM to 0AM 0f the following day?
The raw data are cumulative minute but minute, hour by hour, day by day, so I must use the increase() function along with the window() function.
The graph MUST start at 0AM, MUST stop at 0AM of the following day and than recycle, no matter the window time range selected.

Thank you.

Try to use the date.truncate function to set the start and stop time to 0AM. See here: Date.truncate doesn't work anymore

1 Like