Query Intersection Chart
  • 09 Jan 2024
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Query Intersection Chart

  • Dark
    Light
  • PDF

Article Summary

The Query Intersection chart is a multiple queries metric, consisting of a base query and up to two intersecting queries. You can use this chart to display the number of assets represented by the intersecting queries compared to the base query and highlight the overlap between the intersecting queries, showing the result as a percentage of the total base query entities.

QueryIntersectionChart.png

Query Intersection is displayed as a pie chart.

To configure a Query Intersection chart:

  1. Give a title to your chart.

  2. (Optional) Add a description if you want.

  3. From the Widget dropdown, select Query Intersection Chart.

  4. From the Module dropdown, select an asset module.

  5. From the Base query dropdown, select or create a base query or leave empty for all entities. Learn more about creating a query.

  6. Select one or two intersecting queries, or create new intersecting queries.
    As you configure the chart, a preview is created in the left pane.
    You can assign chart colors to asset count thresholds to easily evaluate the current environment. See Setting Asset Count Threshold Colors.

  7. (Optional) To calculate by asset entity instead of aggregated asset fields, select the Calculate by asset entity toggle. You can also select an adapter to calculate by assets fetched from that specific adapter.
    QueryIntersection_Adapter

  8. Click Save.

A pie chart is generated, with the following data:

Single Query Intersection

Slice TypeSlice DataSlice ColorSlice Label
Intersection #1The intersection between base query
AND
the intersecting query
The color of each slice depends on its size:
1. Red - 0%-25%
2. Amber - 26%-50%
3. Blue - 51%-75%
4. Green - 76%-100%
Name of the intersecting query name
RemainderAssets returned by the base query that do not match the intersecting query.GreyDepends on the selected base query:
- Remainder of [intersecting query name]
- Remainder of all devices
- Remainder of all users

Two Query Intersections

Slice TypeSlice DataSlice ColorSlice Label
Intersection #1The intersection between:
[base query]
AND
[intersecting query #1]
AND
NOT[intersecting query #2]
based on Axonius color paletteIntersecting query #1 name
Intersection #2The intersection between:
[base query]
AND
[intersecting query #2]
AND
NOT[intersecting query #1]
based on Axonius color paletteIntersecting query #2 name
Intersection #1+#2The intersection between:
[base query]
AND
[intersecting query #1]
AND
[intersecting query #2]
based on Axonius color paletteIntersecting query #1 + Intersecting query #2 names
RemainderRemainder of the data - The base query data that does not intersect with the selected queries:
[base query]
AND NOT
([intersecting query #1] OR [intersecting query #2])
GreyDepend on the selected base query:
- Remainder of [intersecting query name]
- Remainder of all devices
- Remainder of all user

For example, creating a Query Intersection chart with a base query of all devices, and devices seen in the last 7 days and with devices seen in the last 30 days as 2 intersecting queries will be resulted in (last 30 days contains all last 7 days devices):

image.png

Click the link on each of the slices of the pie chart to see the Devices page displaying the corresponding list of devices.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.