fbaligand / kibana-enhanced-table

Kibana visualization like a Data Table, but with enhanced features like computed columns, filter bar, and “Split Cols” bucket
Apache License 2.0
305 stars 65 forks source link

Default time setting in enhanced table #314

Closed PunamNaik closed 7 months ago

PunamNaik commented 1 year ago

I have a table, where I have to show data for latest month by default. Also user wants a drop down to select multiple months and see sum of values for the selected months. (Data frequency is 1 record per month) If I use 'TOP HIT' option that shows latest month data, on selecting multiple months, it doesn't work as it still shows latest month data. What is the correct way to do this.

image
fbaligand commented 1 year ago

Well, you don't have ability in Enhanced Table to have some kind of drop down, to choose the months you wish.

But you can use Kibana dashboard global time picker to choose the months that you want, given that the date field you want to use is also the index pattern timestamp field. In dashboard global time picker, using "Quick select" section, you can choose "Last [1, 2, ..., N] months". By the way, if you do that, you can save Time range with your Dashboard. Doing so, you can have "last 1 month" by default when you arrive on dashboard.

Then you can also define a specific "Time Range" only for this visualization on the dashboard (using "Customize time range" visualization menu item).