Grafana v7.3.7 (1e261642f4) with ElasticSearch 6.0+ as datasource grouping

Facing the same core issue but in a different scenario as mentioned in Display Distinct IP and their Count

Any help would be appreciated