# Search Analysis

Using `[SEARCHES] > [ANALYSIS]`, the Ardexa Web App provides you a visualisation tool to plot your statistical results generated from your searches.

![](https://1981611109-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-LzZon2-giCUVDp7W0q0%2F-LzZq34nYSex_lAhOoDJ%2FSearch%20-%20ANALYSIS%20-%20Tab%20Active.png?alt=media\&token=7cc1022d-6bfc-4658-9f53-7e4823953c81)

## Building your Analysis Plot

The following will step you through the process of building an analysis plot.

{% hint style="info" %}
**Note:** Analysis can only be built against numerical data type fields.
{% endhint %}

### Enable ANALYSIS for your Search

Select the `[ANALYSIS]` tab and enable analysis via `Enable` checkbox.  This allows you to begin building your analysis plot.

![](https://1981611109-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-LzZqcfocf3ILnbYPRuw%2F-LzZqq00_8R0eyVX3isE%2FSearch%20-%20ANALYSIS%20-%20Enable.png?alt=media\&token=19dfa1ae-d6db-4d96-a31b-d8df005c1b66)

### Run a Search

We have to generate some search results for our analysis, so we run a search to get some results. All the search input parameters will be used to generate the data that the Analysis plot will be built from.

When you first run a search via the<img src="https://1981611109-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-LzJfA8QYCt5AHvnAnt6%2F-LzJjkw_vADryyngMf-M%2FSearch%20-%20GO%20Button%20-%20Small.png?alt=media&#x26;token=bdc8bf8a-29a9-4244-9c67-48a4fd0d4327" alt="" data-size="line">button, the `[TABLE]` tab may be selected and the search results will be presented to you in the table format​; switch over to the `[ANALYSIS]` tab.&#x20;

{% hint style="info" %}

#### NOTE: Search Input Parameters applied to your Analysis

**Remember:** all the parameters you use in the underlying search will be applied to the Analysis you are building, eg:&#x20;

* *`table`* - the selected data source.
* `Common timeframe` - eg: *`last week`*
* `Common timeframe` - eg: *`custom`*
  * *`Start`* and *`End`* date times.
* `filters`
  {% endhint %}

### Select your Analysis Output Parameters

Select the `[Output]` to expand the Analysis output parameters if they are hidden. This is where you will define what the Analysis chart will draw and how it will be display.&#x20;

![](https://1981611109-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-LzZsr8v23dpiFLoYRmt%2F-LzZsuoOKXiwpzONd6CV%2FSearch%20-%20ANALYSIS%20-%20Output%20Args.png?alt=media\&token=3c144f3b-2196-436e-8cbc-a4d38ec8d47f)

`Field`&#x20;

* Select a numerical field type from the drop-down list.
* If you don't see an expected field it will likely mean the field has not be defined correctly in your Ardexa device's metadata.

`Per device`

* This checkbox allows you to limit an analysis to be applied per device where a data set is built from more than one source.

`Type`

* Typically all data is captured against date and time.

`Interval`

* `day` or `hour` - the finer the granularity of data being used in the evaluation will affect app responsiveness. `day` - faster, `hour` - slower.

`Visualize`

* Select the statistical formula you would like to apply over your search results.

### Customization Settings

The `[Customization settings]` are further parameters provided to help you sharpen your **Analysis** plot. Further descriptions on the available options are provided under [`STATS` **here**](https://docs.ardexa.com/knowledge/app.ardexa/search-statistics#the-ardexa-viz-tool-saving-you-time).

![](https://1981611109-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-LzZyRlZjjtpha50aFaw%2F-LzZz-GAFXFU-BT6-sA2%2FSearch%20-%20ANALYSIS%20-%20Customisation%20Settings.png?alt=media\&token=634b4d81-969c-411a-a2e9-30bc1592102e)

Force `Minimum` and `Maximum` chart limits.

* Out of the box, the VIZ will automatically chart your data and provide you a `y-axis` that best suits your data for the graph.  However, you may want to chart based on fixed periods, for example in units of 10s, in which case you would select a Minimum of `0` and a Maximum of `100` .

`Chart scrollbar`

* An instant **on/off** toggle provides you the means of condensing or expanding the graphed period of your search results. For example, say you see an interesting pattern in a period of you graphed search data, using the toggle you can can zoom-in and just focus on that period.

`Fill Alpha`&#x20;

* &#x20;

`Dash Length`

* &#x20;

### Run the ANALYSIS Charting

Click the![](https://firebasestorage.googleapis.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-LzJfA8QYCt5AHvnAnt6%2F-LzJjkw_vADryyngMf-M%2FSearch%20-%20GO%20Button%20-%20Small.png?alt=media\&token=bdc8bf8a-29a9-4244-9c67-48a4fd0d4327)button to generate your statistical plot.

![Example plot showing maximum value per day for the defined search period](https://1981611109-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LthAmlGL8PG1hh-vzkV%2F-Lz_-rBHQEA2jSGrZUa9%2F-Lz_0KmsG2NyMczMNUCY%2FSearch%20-%20ANALYSIS%20-%20Example%20Plot%20Max.png?alt=media\&token=92440aeb-d639-4bc8-bb6e-ca01325a4d20)
