Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a filter in a metric #7600

Closed
vinuja opened this issue Jul 1, 2016 · 1 comment
Closed

Add a filter in a metric #7600

vinuja opened this issue Jul 1, 2016 · 1 comment

Comments

@vinuja
Copy link

vinuja commented Jul 1, 2016

I have a system that returns Valid or Invalid Results from different hosts. In a table visualization, I would like to introduce 2 metrics: the count per host and the count of valid per host.
So I create a Data table, with two metrics count and a bucket aggregation for the field "host".

How can I add the filter on the valadation field for the second metric?
I tried JSON scripts but it didn't work.
Thanks
Vinuja

@Bargs
Copy link
Contributor

Bargs commented Jul 1, 2016

Hi @vinuja, in the future please ask support questions like this in our Discussion forum https://discuss.elastic.co/c/kibana. We reserve Github for confirmed bugs and feature requests.

That said, I would create a split bar sub-aggregation with the "Filters" agg with one filter value * to match all documents and another filter to match only valid documents. Like this:

screen shot 2016-07-01 at 9 38 45 am

If you want the bars stacked side by side like in my screenshot, set the bar mode to "grouped" in the options tab:

screen shot 2016-07-01 at 9 42 39 am

If you need additional help, please ask a follow up question in the forums linked above.

@Bargs Bargs closed this as completed Jul 1, 2016
cee-chen added a commit that referenced this issue Apr 1, 2024
`v93.5.1` ⏩ `v93.5.2`

---

## [`v93.5.2`](https://github.com/elastic/eui/releases/v93.5.2)

**Dependency updates**

- Updated `react-virtualized-auto-sizer` to 1.0.24
([#7598](elastic/eui#7598))
- Updated `react-window` to 1.8.10
([#7600](elastic/eui#7600))

**CSS-in-JS conversions**

- Updated EUI's internal style memoization/performance utility to have
configurable error/warning levels via `setEuiDevProviderWarning`
([#7626](elastic/eui#7626))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants