I want to create a pie chart that filters by a type and tells me the number of texts, taking into account that only 1 can be counted by id and that it must be the highest date.
I'm not sure it's very clear, if you need more information request it.
From what I can understand you want a metric, not a pie chart as you're only trying to find 1 number.
So a cardinality metric on the ID field (will count the unique IDs) with a filter in the bar for type, that should be it.
Or if you want to show for all types, split by type, a Pie Chart would work, with the same cardinality metric and a split by Terms on the type field.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.