Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can define conditional report alerts in flex.bi reports and charts to receive an automatic email when an alert on a measure is triggered (entered or exited).

Define a conditional formatting rule with an alert for the measure from table report or chart and subscribe to alerts.

Overview

Conditional formatting is available in bar, line, and timeline [1] charts for types: bar, scatter, range, and bubble [2].  

...

Select Conditional formatting [3] for the measure if its type is bar, scatter, range, or bubble

...

Specify one or several rules [4] to detect charts that should have different colors. You can set one or multiple rules, the first matching rule will be used. If no rule is applied, then the default color is used for the chart [5].

There are two ways how to apply those rules [7]: you can set them on the values displayed in the charts or on the value calculated by a custom formula.  Also, there are several ways to define conditions [6]: Range, Exact value, Regular expression, and Top/Bottom. Select one of them. 

...

Range

Specify ranges of values that should have different formatting. Can be used for numeric values, percentagesdates, or file sizes. Both min and max end-point values are included in the range.

For dates, use exact dates or relative dates to define a range. If the date is a DateTime value (also has a precise time, e.g. Issue creation date, Issue resolution date), the start of this date (00:00) is always used, take it into account when defining Max value (add one more day).

For percentage values, include % sign (e.g. 10%).

Example

Using relative dates, color-code ranges based on issue start date: is already started, will start from today within next 30 days, and starts after 30 days in future (default color).

...

Range chart with applied rules for range chart (the report was run on Sep 17, 2021):

...

Exact value

Use exact value to apply rules for text or integer values. This approach is recommended if you have a few specific or unique values (e.g., statuses for texts, story points for numbers) and you want to color-code charts by them. Use precise and case-sensitive values. 

Example

Using exact value condition together with custom formula, change bar color for priority Highest to red and High to orange.

...

Bar chart with applied rules:

...

Regular expression

Use regular expression to apply rules for text containing some pattern (e.g., starts, ends, or contains specific characters). Use Regular expressions to define the pattern. When used for date values then the date text representation (using the measure date formatting) will be used.

Example

Using a regular expression together with custom formula, color all labels that contains the name Release in orange or app in blue. 

...

Bar chart with applied rules:

...

Top/Bottom

Use Top/Bottom to highlight the top and/or bottom cell values. If several values are the same then all cells matching top/bottom values are selected. This option is recommended for numeric values and dates.

Example 

Using the Top/Bottom option, color bubble for Average resolution days/Issues resolved that have the three largest and smallest average resolution days.

...

Bubble chart with applied rules:

...

Using custom formula

By default, the chart measure value is used for selecting the matching rule. In some specific cases, you can override it with a custom calculation formula. Custom calculations use the same MDX expressions as calculated member formulas. You may use an already existing measure as a custom calculation or write the calculation directly in the form.

The custom formula could be used for all kinds of conditions. The data type of the result of the calculation must be the same as the data type of values in the cells the condition is set on.

Example

Color the issue due date (scatter points) in green, if the due date is after the resolution time (the issues are on time) or the default value red is applied if the due date is before the resolution date or before today (in case the resolution is not set).

Code Block
CASE WHEN 
  NOT IsEmpty([Measures].[Issue resolution date])
THEN
  CASE WHEN
	DateCompare([Measures].[Issue resolution date], [Measures].[Issue due date]) < 0
  THEN "On time"
  END
WHEN
  DateCompare([Measures].[Issue due date],"today") > 0
  THEN "On time"
END

...

Scatter chart with applied rules:

...

Set up alerts for a measure

For the table report, click on the measure and select the Cell formatting to define conditional alerts. 

...

For chart view, click on a measure marker in the chart legend and select Conditional formatting.

...

Define formatting rules for alerts

Alerts are supported for just a few conditions: value, range, or regular expressions.

Define at least one rule and specify style and color of the text or background of the cell. For the rules you want to be informed of in email, select the checkbox "Alert".

Don't forget to press "Apply" after an alert is defined.

flex.bi can send you an alert email when the value of the measure is reached or exited. For example, in the following scenario, if the measure reaches value 20, you will receive an email (alert is triggered). And another email will be sent when the measure reaches value 40 (alert for next rule is triggered).

...

Subscribe to alerts

When an alert is set up for at least one measure, don't forget to press save changes for the report.

flex.bi detects alerts and lets you subscribe to alerts from the report actions menu. Note that with one action, the user subscribes to all alerts in the report.

After that, flex.bi sends alert emails just to users that have subscribed to alerts in the report. Other users won't receive alert emails.

...

From Analyze view, you can see a bell icon for reports with defined alerts.

  • filled bell icon - you have already subscribed to alerts in the report;

  • transparent bell icon - the report has conditional formatting rules with alerts but you haven't subscribed yet;

  • no bell icon - the report has no alerts defined.

...

Receive automatic alert emails from flex.bi

flex.bi sends you an automated email when an alert is triggered: entered or exited the conditional rule. It won't send you any emails while the measure is at the alert level (exact value or within range).

Email is sent shortly after the data import is completed. The sender of the alert email is info@flex.bi, and the subject contains the following prefix [flex.bi] Conditional report alerts .