meta data for this page
Sparkline: Handling multiple categories and year-over-year variations
Anonymised summary of support ticket #863295 (2026-06-22)
Symptom
1. When hovering over a category in a Sparkline, the second-level category displays all possible values instead of filtering only the relevant ones. 2. Year-over-year variations (e.g., 260%) are incorrectly displayed in the Sparkline, while the same calculation works correctly in the Webi table.
Environment
SAP BusinessObjects Web Intelligence with N4V FOR WEBI Sparkline extension. Data structured with product families and time periods (e.g., years).
Resolution
- For the first issue: The Sparkline engine aggregates measures over a common time dimension axis. To display only relevant second-level categories, pre-calculate the required aggregation in the Webi block and use a function like MAX, MIN, or LAST to display the correct value in the Sparkline.
- For the second issue: Pre-calculate the year-over-year variation (e.g., revenue variation) at the block level in Webi. Use the formula to aggregate the measure (e.g., revenue) by product family and period. In the Sparkline, select the MAX (or MIN/LAST) function for the indicator to display the correct value. Note: A known issue exists where null values may cause repeated displays of the previous value; this will be fixed in an upcoming HotFix.
Other resolution
The Sparkline extension expects a common time dimension axis for all categories. Ensure the data structure aligns with this requirement to avoid unexpected aggregations.