tks, thats what I was trying to remember but that gave me this format:
_time kpi1: obj1 kpi1: obj2 kpi2: obj1 kpi2: obj2
1 2016-02-04 7560856 7046562 1009480 946519
but with a bit of fiddling I got this to work for 1 day
... | bucket _time span=1d | eval _time = strftime(_time,"%Y-%m-%d") |
chart values(_time) as _time sum(kpi1) as "kpi1" sum(kpi2) as "kpi2" by userLabel
| fields + _time userLabel *
_time userLabel kpi1 kpi2
1 2016-02-04 obj1 7560856 1009480
2 2016-02-04 obj2 7046562 946519
but if I do 7 days I get this whis is not what I want:
_time userLabel kpi1 kpi2
1 2016-01-29,2016-01-31,2016-02-01,2016-02-02,2016-02-05 obj1 3290858 436760
2 2016-01-29,2016-01-31,2016-02-01,2016-02-05 obj2 2160879 290454
... View more