Is it possible to visualize different time series based on 2 fields on kibana

Hello, I would like to visualise different time series based on 2 fields (field1 and field2).
I have a field named numr_Ficher that could have the values : 2235/2234/2230..
And another field named operateur that could have the values : A/B/C
so I would to have different time series on the same graph for
A and 2235
A and 2234
A and 2230
B and 2235
...
I tried the metric TSVB, but I could group by only with one field

I tried the lenz panel, and I added filters, but we need to add filters manually

The way you have done in Lens is the right way to do it. You will have to add them manually, indeed.
In TSVB you could add multiple series to the same chart but this will only work if you have a known finite number of "A, B, C, ..." or "2235, 2234, ... " values in their corresponding field. So they would have to added manually to the chart.

Thank you for your response ! I would like to apply the filters on all panels of the same dashboard. I tried to apply a filter as follow, but I could only have one time serie. Is it possible to apply a filter with a group by category and operateur and have different time series on the same panel ?
{
"query": {
"bool": {
"must": [
{
"match": {
"numr_Ficher ": 2235
}
},
{
"match": {
"operateur": "A"
}
}
]
}
}
}

i tried another query , but it didn't work also. I put this json script on Add Filter/Edit as query DSL
{
"query": {
"bool": {
"should": [
{
"bool": {
"must": [
{
"match": {
"numr_fich": 2235
}
},
{
"match": {
"operateur": "A"
}
}
]
}
},
{
"bool": {
"must": [
{
"match": {
"numr_fich": 2235
}
},
{
"match": {
"operateur": "B"
}
}
]
}
}
],
"minimum_should_match": 1
}
}
}

I found a solution for this topic. I applyed a filter on each panel with activating Group By this field first. And, I added a filter on the top of Dashboard also

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.