--- title: "Set up stacking on a distribution query" slug: "set-up-stacking-on-a-distribution-query" tags: ["ESM", "Product Usage"] updated: 2026-09-12T21:19:39Z published: 2026-09-12T21:19:39Z canonical: "docs.trellix.com/set-up-stacking-on-a-distribution-query" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up stacking on a distribution query Group events by a specified data field, and then stack by time segment. When adding widgets to views, choose how to stack the distribution. When you access the view, you can change the settings, set the interval, and set the chart type and details. > ### Note > > You can't use **Stacking** and **Compare** in the same query. 1. Click the widget menu ![GUID-90CC508D-C258-41AB-9D9C-4E1D7DE5FBCB-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-effb7164-c5e4-9033-e732-747e1488f002(1).png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A52%3A36Z&se=2026-11-22T13%3A52%3A36Z&sr=c&sp=r&sig=JrGXt9XrUNNoSadoJFpjdskBgT%2FreCfHoEzegNHMxYo%3D) and select **Settings**. > ### Note > > Stacking is unavailable for **Collection Rate** or **Average** (for example, **Avg Severity Per Alert** or **Avg Duration Per Flow**) distribution queries. 2. Click **Stacking**. 3. Enable stacking using the enable/disable slider. ![GUID-8702DFF7-0E96-48D7-A79E-53A9C57903B0-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-aca32062-24b8-2eda-75cd-cfc589dce59d(1).png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A52%3A36Z&se=2026-11-22T13%3A52%3A36Z&sr=c&sp=r&sig=JrGXt9XrUNNoSadoJFpjdskBgT%2FreCfHoEzegNHMxYo%3D) 4. Configure the stacking options and click **Save**.