I presume that the "1001", "2001", ... are filters in the top bucket aggregation, followed by a terms aggregation under it?
It's not possible now to do that now with the data table visualization. It organizes the results in the hierarchy. You can always submit an enhancement request here: https://github.com/elastic/kibana/issues/new
Although I'm not 100% sure of this will get you there, but I'd consider taking a look into the Vega visualization. It allows you to use the Vega markup language in Kibana. https://www.elastic.co/guide/en/kibana/current/vega-graph.html. It will give you more flexibility in how to lay-out your data.
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.