This documentation page assumes that you already have a SeekTable account. Create your free account by signing up.

Report HTML Formatting

As a web-based BI tool, SeekTable allows you to use custom HTML within table cells, providing flexibility beyond standard cell properties like background/text color and font styles. This HTML formatting works for report's web view, PDF and HTML exports (including reports inlined in emails) + cell properties affect Excel export too.

There are 2 ways how conditional / HTML formatting can be configured:

In both cases you can use special HTML-related functions to apply custom HTML and/or conditional formatting rules:

Conditional formatting in tables

You can customize cells style (color/background color, bold/italics, font size etc) based on cell values. The following expression highlights with red measure values that below some threshold:

Variant 1: format expression

=(value<200 ? Html.SetTextColor("{0:#.##}", "#FF0000") : value))

Variant 2: calculated dimension

  1. Let's assume that Name of the measure you want to format is SumOfTotal
  2. Go to Edit Cube Configuration and add a new calculated measure:
    • Set Type = Expression
    • In Parameters click + Value and set an expression:
      Html.SetTextColor( Html.Raw( Format("{0:#.##}", [SumOfTotal] ), SumOfTotal),  SumOfTotal<200 ? "red" : null)
      In a similar way, if you don't want ' want to have colors in the Excel export too:
      SumOfTotal<200 ? Html.Raw( "<span style='color:red;'>"+Html.HtmlEncode(SumOfTotal)+"</span>", SumOfTotal) : SumOfTotal
      
      				Then add one more parameter to declare the name of measure that is used in the expression:
      				
      SumOfTotal
    • Set Name = SumOfTotalFormatted
  3. Create a report and use SumOfTotalFormatted measure for Values. See here how it looks in the demo report.
Add HTML-formatted measure

Links and custom navigation

You can use HTML formatting for links rendering:

  1. Let's assume that the cube has company_name and company_website_url dimensions
  2. Go to Edit Cube Configuration and add new calculated dimension:
    • Set Type = Expression
    • Set Name = company_name_linked
    • In Parameters click + Value and set an expression:
      Html.Link(company_website_url, company_name, true)
      Then add the following values to declare dimension names used in the expression:
      company_name
      company_website_url
  3. Create a report and use company_name_linked dimension
Link values in a report

In a similar way you can render <img> tag and display images in the table cells or create a link another report.