Creating a simple PixelPerfect report
Create a new PixelPerfect report template
Do the following:
- Select Reports in the Qlik NPrinting main menu, and then click Create report.
- Enter a Title for the report. Simple PixelPerfect Report.
- Select PixelPerfect from the Type drop-down list.
- Select an app from the App drop-down list.
-
Select a Template from the options available:
- Empty template - uses an empty template
-
Default template - use the default template (only available if a default template has been set in Report settings.
- Custom - Choose a file to use as a template.
- Click Create to create the report.
- Click Edit template to open the Template Editor.
- Right-click the Levels node, and select Add levels.
Insert a QlikView table as level
Do the following:
- Select the Connection to the QlikView document that contains the object you want.
-
Enter 1 and 8 into the search field to reduce the number of candidate objects to five.
If Top 25 Products - CH184 is the only object visible, press Enter to add it to the Levels node. Otherwise, select it in the list.
-
Click OK.
CH184 will be added to the Levels node.
Create level details
Do the following:
- Right-click on the Detail area in the middle of the page.
- Select Insert Detail Report.
- Choose CH184_Level from the list.
Create data columns
Do the following:
- Expand the CH184 node.
- Press Shift or Ctrl and select the four columns of the CH184 from the Levels node.
- Drag and drop the selected columns into the DetailReport - CH184_Level area.
Set column order
To change the order of the columns, do the following:
- Click in a cell to select it, for instance the first GP%.
- Click on the small arrow that appears in the upper right corner to open the Table Cell Tasks menu.
- Open the Data Binding drop-down list and expand the CH184_Level.GP% node.
- Select Product Name to set this field as the first column.
- Repeat 1 through 4 for the other columns in the order Total Sales, Gross Profit and GP%.
To eliminate inter-row white space, select the dotted line below the table and overlap it with the bottom line of the CH184_level table.
Create table headings
Do the following:
- To add column headings, drag and drop the Table object from the Tool Box on the right.
- Align the new table with the upper left corner of the Detail area.
Insert a fourth column
It is necessary to create a new column to match the data structure.
Do the following:
- Right-click the third cell, select Insert, and then click Column to Left.
- Select the right border of the fourth cell and drag it until the guideline overlaps with the right border of the fourth cell of the CH184_Level table.
- Repeat this action with the other cells until they are aligned with the corresponding cells in the CH184_Level table.
- Double-click the first column on the left to edit the text and enter Product Name.
- Repeat the process with the second column and enter Total Sales.
- Enter Gross Profit in the third cell and Gross Profit % in the last cell.
- Select the entire table by clicking on the upper left corner.
- Set the font type, dimension, alignment, and so on, as you prefer. For example, select Sans serif, 14px, Bold and Centered.
- Select the row of table headings and then find Borders in the Property Grid in the lower left corner.
- Select All in the drop-down list.
- Click the drop-down button to accept the updated borders.
- Select the bottom border of the Detail area and align it with the bottom border of the table to eliminate the empty space.
Set table data borders
Do the following:
- Select the entire data table in the DetailReport - CH184_Level area.
- Find Borders in the Property Grid.
- Select All in the drop-down list. The Border icons become yellow.
- Click the drop-down list to accept the updated borders.
- Keep the data table selected.
-
Set the font format you prefer. For example, select Sans serif, 11px.
Set data alignment
Do the following:
- Select the ProductName cell.
- Find Text Alignment in the Property Grid.
- Click the drop-down list, and then set text alignment to Middle Left.
- Select the Total Sales cell.
- Set text alignment to Middle Right in the Property Grid.
- Repeat steps 5 and 6 for columns Gross Profit and Gross Profit %.
Format numbers
To set the number formatting to Dollar currency, do the following:
- Select the Total Sales cell, and then click on the upper right arrow >.
- Click on the dots on the right of Format String in the new window, and then select Currency.
- Click on the Custom tab.
- Select the $0.00 format.
- Click OK.
- Repeat steps 1 to 5 for the Gross Profit cell.
- Format Gross Profit % as Percent 0.00%.
Preview and save
Do the following:
- Click Preview.
- Check the report, close it, and then edit the template again if necessary.
- Click Save and Close to save the template and close the Template Editor.