How to do baseline in Grafana?

Hi, I’m using Zabbix Datasource but my questions stand for any data source. Let’s say I capture a CPU over a week, do some average over it and save it in a table. How to use this static baseline (curve) to project over my normal time-based metrics?

I want to compare the current values against this baseline.

The second best option would be to have a rolling baseline as an average of the last x occurrences. For example, last six Mondays averaged and use that as the baseline for Monday.

Normally I would want to use it for alerting as well, but Zabbix as data source doesn’t do alerting.