With effect from 2022-03-31 dashboard release:

Sub-query will enable users to introduce charts as filter values, this means that charts are run as sub-queries which will help build the data of the main chart.

Please refer to this page to see a walkthrough of a sub-query filter.

How does Sub-query work:

After selecting what you want to filter on and the operator you want to use you will then be able to select from data or a chart when picking the value to filter on. The type of charts allowed to be used as sub-query are similar to the options that you can select from when using merged charts/ tables. If a chart can be used as a sub-chart of a merged chart or table, it can be used as sub-query. This means that

The ‘Type to filter’ screen has now been split into two sections - Data and Charts. The Data screen is used in the same way as it was previously (please see this page for more information).

The screenshot below shows the chart types that can be selected from. If a chart type can not be used in a sub-query it will not be available on the' Charts' screen under ‘Type to filter’.

Why use sub-query

By using Sub-query, you will be able to:

Performance with sub-query:

Since sub-query charts are building charts to be used by other charts, the time it takes to display a chart will be the total time it takes to build all the charts used. You can see a breakdown of these times by clicking Chart Tools>Chart Information and selecting the ‘Debug’ tab.

In this example, the total time to build all charts is 748ms. This includes the 309ms taken to build the sub-query chart.

To reduce the length of time taken to draw your chart, try to avoid using lots of sub-query references in your charts.

Potential problems: