Design an SSRS sparkline report using a table in Bold Reports®
To show trends in data over time inside table rows, add a Sparkline report item to an SSRS table in the Bold Reports® Web Report Designer. You create a dataset, add a table and sparkline, assign data, and format the series.
How do I create the dataset?
The Sparkline report in the Bold Reports® Web Report Designer uses the following dataset query:
SELECT Prodcat.EnglishProductCategoryName,
prodSubcat.EnglishProductSubcategoryName,
prod.EnglishProductName,
prod.Color,
fact.[TotalProductCost],
fact.SalesAmount,
fact.TaxAmt,
fact.[OrderDate],
fact.[ShipDate]
FROM dbo.DimProduct as prod
INNER JOIN dbo.DimProductSubcategory AS prodSubcat ON
prod.ProductSubcategoryKey = prodSubcat.ProductSubcategoryKey
INNER JOIN dbo.DimProductCategory AS Prodcat ON
prodSubcat.ProductCategoryKey = Prodcat.ProductCategoryKey
INNER JOIN dbo.FactInternetSales AS fact ON
fact.ProductKey = prod.ProductKeyRefer to the Create Data section and create a dataset using the above query. The
AdventureWorksDW2014database is used here.
How do I add the sparkline report item to a table?
You add a sparkline in the Bold Reports® Web Report Designer by placing a table, grouping its rows, and dropping the sparkline into the last cell.
- Drag and drop the table report item to the design area.

- Assign the dataset to the table.

- Assign the
EnglishProductSubcategoryNamefield in the first cell.
- Click
Details groupin theRow Groupspane. The tablix member properties are listed in the properties panel.
- Click the
Set Groups...button in the properties panel. TheGroupingdialog opens, as shown in the following image.
- Click the
Addbutton, selectEnglishProductSubcategoryName, and click OK.
- Assign the
Salesfield in the second cell.
- Select the
Salestext box and assign the following expression=Sum(Fields!SalesAmount.Value)in the cell.
- Drag and drop the sparkline report item into the last cell of the table.

The report design now looks like the following image.

Cannot insert a sparkline into a detail cell. Detail members can only contain the static inner members.
How do I assign data to the sparkline?
You assign data to a sparkline in the Bold Reports® Web Report Designer from the DATA tab of the properties panel.
- Select the cell containing the sparkline report item and switch to the
DATAtab in the properties panel.
- Drag and drop the
TotalProductCostfield into theY-Valuessection.
- Drag and drop the
OrderDatefield into theColumnsection.
The report design now looks like the following image.

How do I configure the sparkline properties?
You configure the sparkline series and data labels in the Bold Reports® Web Report Designer from the PROPERTIES tab.
- Switch to the
PROPERTIEStab in the properties panel. - Choose the
Salesseries in theChoose Seriesdropdown.
- Click the edit icon to open series properties.

- Under the data label settings category, enable the Data Label property checkbox.

- Format the numbers produced by the
Data labelsusing theFormatproperty. Set'$'#,0;('$'#,0)as the value of the format property field.
- Change the background color and font styles of the table cells to improve the report design, as shown in the following design.

Refer to the Cell Properties to style the table cell.
What does the report preview show?
The sparkline report preview in Bold Reports® shows the sales amount progress from the start year to the end.

Download the sparkline report design (RDL)
Frequently asked questions
Can I insert a sparkline into a detail cell?
No. You cannot insert a sparkline into a detail cell, because detail members can only contain the static inner members.
Which fields does the sample sparkline use?
The sample uses TotalProductCost in the Y-Values section and OrderDate in the Column section.