Customize total and subtotal formatting—ICRW

Columns in a report organize and make sense of the data. You can add formulas and functions to Interactive Custom Report Writer (ICRW) report columns to enhance data analysis.

This topic demonstrates how to customize subtotal and grand total row formatting using a specialized Cascading Style Sheet (CSS) template. The custom CSS settings allow you to improve the readability of ICRW reports viewed in a Web browser.

Custom CSS (HMTL only) formatting only appears when the report is viewed in a browser. The custom formatting is not shown in PDF versions of the custom CSS reports.

 

The custom CSS template allows you to apply specialized formatting to subtotal and grand total rows of ICRW report tables and pivot tables. Microsoft Excel, the industry standard spreadsheet, is the application on which the custom CSS template is based.

Download the custom template

The macros and calculations included in this template are provided solely for your convenience, and Sage does not make any assurances or claims regarding their accuracy. Please be aware that Sage will not offer customer support for any problems related to macros and/or calculations used in this template.

To download a copy of the custom CSS template, select this link: Custom Excel CSS template.

Working with the custom template

Bold text is the main visual differentiation for total and subtotal rows in ICRW reports.

The custom CSS template allows you to enhance the formatting for total and subtotal rows to make reports easier to read. You can select from a variety of options in the custom CSS template. This template allows you to customize the visual presentation on a report-by-report basis.

Custom formatting options

The following example shows a custom subtotal row that uses 10 options from the custom CSS template.

The customized subtotal row of an ICRW report has a custom background color, double lines of different weights beneath fthe subtotal, and additional vertical space beneath as well. These customizations make the subtotal row easier to find and read in a lengthy report.

  1. Line color (all lines)
  2. Line thickness (all lines)
  3. Upper line type (Single, Double, None; Single shown in the example)
    Standard ICRW formatting does not allow for different upper and lower line types.
  4. Extra vertical space above the values (Yes or No)
    Not available in standard ICRW formatting.
  5. Custom background color (Light yellow shown in the example)
  6. Lower line type (Single, Double, None; Double shown in the example)
    Standard ICRW formatting does not allow different upper and lower line types.
  7. Amount of vertical space between double lines
    Standard ICRW formatting does not allow this vertical spacing change.
  8. Extra vertical null space below the bottom line (Yes or No)
    Standard ICRW formatting does not allow this vertical spacing change.
  9. Custom color for the extra vertical null space below the bottom line
    Standard ICRW formatting does not allow this customization.
  10. All customization options are available for values and labels.

Types of formatting: values and labels

You can specify custom formatting for Values and Labels. The two sections of the custom CSS template are identical. The different sections allow you to create a separate set of custom selections for values and labels. The individual sets provide you with easy access to both types of customizations.

CSS Generator precaution

On the custom Excel template, the sections labeled CSS Generator should not be modified. Modifying the CSS Generator sections can result in faulty CSS code that's ignored by ICRW.

Custom colors

Options for Line Color and Background Color can be found on the Lookups page of the custom template. Go to the top of the page in the Range Name: COLOR_LOOKUP section.

You can add, remove, and create your own list of preferred selectable colors under COLOR LOOKUP. Sample color swatches, names, and hex color codes can be found on other tabs in the template.

Save your favorites

The Favorites section, at the bottom of the custom template, allows you to create a library of preferred customizations. The Favorites library stores the options that you use most often in one place for easy access.

Save a copy of the custom template

It is a recommended best practice to keep a backup copy of the custom template. This practice provides a safeguard for your list of custom Favorites.

Customize the formatting for subtotals and totals

You can customize the formatting for subtotal and total rows in an ICRW report by performing three simple procedures:

  1. Enable subtotals in an ICRW report.

  2. Format total and subtotal values.

  3. Format total and subtotal labels.

The specialized formatting you create using the custom CSS template only appears in reports viewed in a browser (HTML only). If you export the report to a PDF file, the custom formatting is not shown in the PDF version of the report.

Enable subtotals in an ICRW report

This task shows you how to enable subtotals in an ICRW report.

  1. Open an ICRW report for editing and go to the Refine tab.
  2. In the Table section, select the Pencil icon (Edit) and go to the Layout pane.
  3. Select the Sum icon (Sigma symbol) for the column on which you want to create rows of subtotals.
  4. The Sum icon, or Signa symbol, is located to the far right of a column in the Layout section in the bottom half of the Editor screen.

  5. Do the following to turn on the subtotals for the column:
    • For Tables, select After Values.
    • For Pivot Tables,select either Before Values or After Values, as desired.
  6. Leave the report open and continue with format total and subtotal values.

Format total and subtotal values

This task shows you how to apply custom template selections to customize total or subtotal values in an ICRW report.

  1. Open the custom CSS template and select the Subtotal Formats tab at the bottom of the page.
  2. In the Subtotal Rows - Format Values section, make the desired selections for Cell Characteristics and Line Characteristics.
  3. Go to the open ICRW report and select the Sum icon (Sigma symbol) for the column again and choose Format Values.
  4. In the Edit Format dialog, expand the Custom CSS Style Options (HTML Only) section and select Use Custom CSS.
  5. On the Subtotal Formats page of the custom Excel template, copy (CtrlC) the CSS in cell A22.
  6. Go to the Edit Format dialog of the ICRW report. Then paste (CtrlV) the CSS in the Use Custom CSS Style field, then select OK.
  7. To customize the column labels in the report, continue with format total and subtotal labels. Otherwise, select Done.

Format total and subtotal labels

This task shows you how to apply custom template selections to customize total or subtotal labels in an ICRW report.

  1. Go to the Subtotal Formats page of the custom CSS template and scroll right to the Subtotal Rows - Format Labels section.
  2. Make your customized selections for Cell Characteristics and Line Characteristics.
  3. Go to the open ICRW report and select the Sum icon (igma symbol) for the column again and choose Format Labels.
  4. In the Edit Format dialog, expand the Custom CSS Style Options (HTML Only) section and select Use Custom CSS.
  5. On the Subtotal Formats page of the custom Excel template, copy (CtrlC) the CSS in cell I22.
  6. Go to the Edit Format dialog of the ICRW report. Then paste (CtrlV) the CSS in the Use Custom CSS Style field, then select OK.
  7. Select Done.