You need a numeric line item in a module with two levels in the time dimension, selected as Data source in the Card configuration panel.
To show a KPI card's Card configuration panel, either:
- When you create a new KPI card, click the Configure KPI button, or
- Select or hover over an existing card on your page and click the Edit icon.
To add a sparkline to a KPI card and configure it,
- In the Card configuration panel, select the KPI tab.
- Expand Sparkline and enable the Enabled toggle.
- Optionally, you can:
- Enable the Data labels toggle.
When Data labels is enabled, a data label displays when you hover over a data point in the chart. - Change the color of the sparkline.
A color picker displays next to the Sparkline color label. Click on the color picker and select a color from the palette.
- Enable the Data labels toggle.