This topic is associated to the open issue of creating drill down dashboards in Kibana: https://github.com/elastic/kibana/issues/12560
What follows is an attempt to workaround this open issue, but ultimately hitting a brick wall. Hopefully some brave kibana guru can help me out. I am trying to create hierarchical (or drill down) dashboards in kibana. To that end, to drill down at a certain level, I needed two pieces of hierarchical information. So, I configured the data section of the Visual Builder to send me data from two separate series combined (in the special _all field) as follows:
1. partner: {last: {…}, data: {…}, label: "Verizon"}
2. customer1: {last: {…}, data: {…}, label: "BA"}
3. customer2: {last: {…}, data: {…}, label: "AA"}
4. customer3: {last: {…}, data: {…}, label: "United"}
The first entry is from a different series and gives me the partner name. The second to fourth entry is from another series and gives me the customer names.
In my markdown, I want to create links for just the customers as follows:
[BA](http://www.example.com? _a=(language:lucene,query:'partner:Verizon AND customer:BA'
[AA](http://www.example.com? _a=(language:lucene,query:'partner:Verizon AND customer:AA'
[United](http://www.example.com? _a=(language:lucene,query:'partner:Verizon AND customer:United'
This should be achievable using the following simple markdown code (according to the handlebars js documentation):
{{#each _all}}
{{#if @first}}
{{else}}
[{{label}}](http://www.example.com?_a=(language:lucene,query:'partner:{{_all.[0].label}} AND customer:{{label}}')
{{/if}}
{{/each}}
However, I have played with the handlebars implementation of Visual Builder for quite some time today, and there seems to be no way to get the label of the first location of _all dictionary in this way (or any other way). Any tips appreciated.
Note, I know how to get the first entry of _all by iterating over it, but I need it available while iterating all the other entries.