How to calculate count by field?

Hi !
I need to create two Y-Axis with two different agregation for different filters.
In Average agregation i can choose Field, but in Count i cant choose field. Why? And what i need to do ?

You can't choose count by field, because the same fields should be in all of your documents. It won't break anything if that's not the case, but it means you have an unhelpful data model.

If you want something like: count how many documents have this kind of field, how many documents have that kind of field, you'll want to split the chart by aggregations. For example, you could get count by time, and the counts for each 30 minute period: that is what you have in your screenshot right now.

Rather than a 2nd Y-Axis, I think you are looking to split the chart by an aggregation.

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