Hi!, I’m trying to created a stacked Column chart using data from MSQL, with no time.
like this view
![image](https://us1.discourse-cdn.com/grafanastaging/original/3X/2/1/21129b165c7605ddd850c687bd7a3c823592cefc.png)
![image](https://us1.discourse-cdn.com/grafanastaging/original/3X/5/d/5d6a6ce719c438e025dcdb58f929e900867a0de5.png)
![image](https://us1.discourse-cdn.com/grafanastaging/original/3X/d/3/d333b42ff5fbcd2f289fd70ba133d2047fb4b22e.png)
script
SELECT COUNT (*) EMPLEADO, SEXO,NOMINA
FROM [EMPLEADO]
Where ACTIVO = ‘S’
group by SEXO, NOMINA
order by NOMINA
is there a way to stacked bar with no time values?
if there isn’t a way… any advice on how to add a custom timestamp in this query?
Please post sample data not as image but as csv?
empleado,sexo,nomino
14,F,CNTR
thanks for reply, here you are.
empleado, sexo, nomina
14,F,CNTR
14,M,CNTR
32,F,WH01
149,M,WH01
22,F,WH02
142,M,WH02
1 Like
It does not seem like what you are looking for is available
please try this with a fake nanosecond for today’s date
SELECT
1651665600 as time,
NOMINA as metric,
count(1) as value
FROM EMPLEADO
GROUP BY SEXO, NOMINA
ORDER BY 1
and make sure you choose Stacking Normal under bar chart
1 Like
thanks for help! I got it
1 Like