Skip to content

Commit

Permalink
fix: filter positive amount in viaggi_dashboard.json (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
and-mora authored Feb 3, 2025
1 parent ac7ccbc commit 915a389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitoring/grafana/dashboards/viaggi_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"editorMode": "code",
"format": "time_series",
"rawQuery": true,
"rawSql": "select accounting_date as time, merchant_name, sum(abs(amount))::float/100 as spesa\nfrom expenses.payments p\njoin expenses.payments_tags pt on p.id = pt.payment_id \nwhere pt.value = $viaggi\ngroup by accounting_date, merchant_name\norder by time",
"rawSql": "select accounting_date as time, merchant_name, sum(abs(amount))::float/100 as spesa\nfrom expenses.payments p\njoin expenses.payments_tags pt on p.id = pt.payment_id \nwhere pt.value = $viaggi and p.amount < 0\ngroup by accounting_date, merchant_name\norder by time",
"refId": "A",
"sql": {
"columns": [
Expand Down Expand Up @@ -248,6 +248,6 @@
"timezone": "browser",
"title": "Viaggi",
"uid": "fe02zmq0m9jb4f",
"version": 1,
"version": 2,
"weekStart": ""
}

0 comments on commit 915a389

Please sign in to comment.