Hello everyone, I am new on grafana.
I am struggling to deliver to my boss a graph (like a Histogram or a Bar Chart), that shows the monthly cost of last 12 months timeframe.
The problem is that some months , there is no cost, it should return zero.
My basic query is:
SELECT
month(period_start_date) as Mesi,
sum(line_item_cost) AS cost
from CUR_Table
where
user_cliente = ‘MCS’
and
$__timeFilter(bill_billing_period_start_date)
group by 1
order by 1
It returns me one single month, acctualy the current month.
I need it to show me 12 bars, even if some of them is 0.
Could you please help me guys?