diff --git a/frontend/src/utils/buildQueriesForLayouts.ts b/frontend/src/utils/buildQueriesForLayouts.ts index c254ffa9..eafc7250 100644 --- a/frontend/src/utils/buildQueriesForLayouts.ts +++ b/frontend/src/utils/buildQueriesForLayouts.ts @@ -94,6 +94,10 @@ const buildCannedDashboardQuery = ( text += ` group by time(${defaultGroupBy})` } + if (text.includes('non_negative_derivative') || text.includes('derivative')) { + text += ` offset 1` + } + if (tz) { text += ` tz('${tz}')` }