After you create a query in Explore, you can change the format of your results to percentages, currency, timestamps, or custom formats using the Display format option in the chart configuration () menu. This article shows you how to set your results to one of Explore's pre-built formats or create your own customized format.
Changing results to a pre-built format
Explore automatically offers pre-built formats for your results. This section will describe each pre-built format and how to access them.
- In query builder, click the chart configuration icon (
).
- Select the Display format option.
- Click the drop-down list next to your metric. By default, all results are in standard format.
- Select a format option. There are five pre-built options:
- $: Reformats your results into dollars. If your results contain decimal numbers, they will be added as cents.
- €: Reformats your results into euros.
-
%: Multiplies your results by 100 and adds the percentage symbol (%).
Note: If you do not want to multiply your results by 100, you can add a percentage suffix as a custom format (see Customizing your result format).
- Finance: Displays two decimal values. If your results do not include any, two zeros will be added after the decimal point.
- Duration: Convert your results into the dd:hh:mm timestamp (days, hours, minutes). Your metric can only be converted into dd:hh:mm.
Your results are automatically converted to the selected format.
Customizing the result format
Use this section to learn about custom formatting options. You can use the steps in the section above to change your result format to the Custom option. If you want to display separate formatting, for different ranges of value in the same metric, you can use the Advanced option. See Adding conditional formatting.
To customize the result format
- In Query Builder, click chart configuration (
).
- Select the Display format option.
- Click the drop-down list next to your metric. By default, all results are in standard format.
- Select Custom.
You can customize your results with the following formatting options:

- Decimal place: Add or remove decimal places from your results. If your results do not contain decimal numbers, zeros will be added to your results.
- Thousands separator and Decimal separator: Enter a symbol to represent every thousand or the decimal point.
- Prefix and Suffix: You can add a symbol to the beginning or end of your result without altering your numbers. The suffix option is useful if you want to display your results as a percentage, but do not want to multiply by 100.
-
Scale: Divides your results by your selected option. You can select the following:
- 0.01 and 0.01
- Thousands, Millions, Billions, and SI Units
Adding conditional formatting for tables
For tables, you can display different formatting based on specified set of conditions, by selecting the Advanced option. With the Advanced formatting option, you can create new and edit existing IF THEN ELSE statements with your metric conditions and resulting formatting.
To apply conditional formatting for tables
- In Query Builder, click chart configuration (
).
- Select the Display format option.
- Click the drop-down list next to your metric. By default, all results are in standard format.
- Select Advanced.
The following are the formatting options you can apply:
- backgroundColor: Set the background color. Colors are represented by six digit HEX code.
- precision: Add or remove decimal places to your results. If your results do not contain decimal numbers, zeros will be added.
- scale: Divide your results by your selected option. For example, you can view your results to the thousandths by dividing by a thousand.
- prefix: Enter a symbol to appear in the front of values.
- decimalSeparator: Enter a symbol to represent the decimal point.
- italic: Enter TRUE to present values in italics, or FALSE to present them in regular font.
- bold: Enter TRUE to present values in bold, or FALSE to present them in regular text.
- suffix: Enter a symbol to appear at the end of values.
- fontColor: Set the text color. Colors are represented by six digit HEX code.
- thousandsSeparator: Enter a symbol to represent every thousand.
The following query example uses conditional formatting to highlight the number of open tickets each agents have and quickly identify agents with an outstanding number of open tickets. Agents
The query uses the following formula to generate these results:
IF (COUNT(# Open Tickets) > 25) THEN
{
"backgroundColor": "#FF5733",
"precision": 0,
"scale": 1,
"prefix": "",
"decimalSeparator": ".",
"italic": FALSE,
"bold": TRUE,
"suffix": "",
"fontColor": "",
"thousandsSeparator": " "
}
ELIF (BETWEEN((COUNT(# Open Tickets)),10,25)) THEN
{
"backgroundColor": "#FFC300",
"bold": TRUE
}
ELIF (COUNT(# Open Tickets) <10) THEN
{
"backgroundColor": "#19C700 ",
"bold": TRUE
}
ENDIF
For additional resources for writing formulas in Explore see Formula writing resources
33 Comments
I'm unable to provide a rule based on percentage. I am hoping to insert a conditional formatting rule that highlights any cell >90% - Green and any cell <90% - Red.
Hey Aric,
I've provided an example of how conditional formatting would work for percentages below:
IF (SUM(% Engagement satisfaction score) < 0.9) THEN
{
"backgroundColor": "#FF5733",
"precision": 2,
"scale": 0.01,
"suffix": "%",
"decimalSeparator": ".",
"italic": FALSE,
"bold": TRUE
}
ELIF (BETWEEN((SUM(% Engagement satisfaction score) ), 0.9 ,0.95)) THEN
{
"backgroundColor": "#FFC300",
"precision": 2,
"scale": 0.01,
"suffix": "%",
"decimalSeparator": ".",
"italic": FALSE,
"bold": TRUE
}
ELIF (SUM(% Engagement satisfaction score)>0.95) THEN
{
"backgroundColor": "#19C700 ",
"precision": 2,
"scale": 0.01,
"suffix": "%",
"decimalSeparator": ".",
"italic": FALSE,
"bold": TRUE
}
ENDIF
I hope this points you in the right direction!
Hello, I am wondering if it is possible to do conditional formatting in Advanced display format for Ticket handling time.
I recreated
'Ticket handling time min' so there are no parenthesis to error out which I am able to achieve colour formatting.
My issue is the second's column since it is based on 100 rather than 60 I can have results of '3:80', rather than the true time of 3:48 - is this possible?
Formula:
IF (AVG(Ticket handling time min) > 5) THEN
{
"backgroundColor": "#EE6363",
"precision": 2,
"scale": 1,
"prefix": "",
"decimalSeparator": ":",
"fontColor": "#000000",
"italic": FALSE,
"bold": TRUE,
"suffix": ""
}
ELIF (BETWEEN(AVG(Ticket handling time min), 3, 5)) THEN
{
"backgroundColor": "#FFC83D",
"precision": 2,
"scale": 1,
"prefix": "",
"decimalSeparator": ":",
"fontColor": "#000000",
"italic": FALSE,
"bold": TRUE,
"suffix": ""
}
ELIF (AVG(Ticket handling time min) < 3) THEN
{
"backgroundColor": "#00D364",
"precision": 2,
"scale": 1,
"prefix": "",
"decimalSeparator": ":",
"fontColor": "#000000",
"italic": FALSE,
"bold": TRUE,
"suffix": ""
}
ENDIF
Thank you in advance
Please sign in to leave a comment.