8,981
edits
Changes
Marked this version for translation
<translate>
<!--T:1-->
Sets different formatting (styles) to rows, columns, and cells of normal and intersection tables based on conditions/selections (rules).
These conditions can be a fixed value, a range of values, greater than a certain value, etc.
<!--T:2-->
Conditional formatting allows you to modify the following table rows and/or columns properties based on the condition set for each rule:
<!--T:3-->
* Rows, columns ([[Cross Table]]), and cells background color;
* Font color;
<!--T:4-->
To facilitate the formatting settings, we have made available default formatting options where you just have to create the conditions to apply the formatting.
<!--T:5-->
There are two ways of applying the conditional formatting to the [https://taticview.com/en/ TaticView] tables. Apply rules through rows (object rules), which will be implemented to the table rows
or apply rules through column/cell, where the formatting will only be applied to the table's columns/cells, or apply rules through column/cell, where the formatting will
<!--T:6-->
'''Rows rule'''
<!--T:7-->
This type of rule will be implemented to every row of the table if the rule condition is true.
<!--T:8-->
To create rules to table lines, all you have to do is select the desired object and select the option ''Conditional Formatting'' on the ''Object'' tab on the [[Design Overview#SideBar|sidebar]].
<!--T:9-->
The following screen will be shown when you've created a new rule for a certain row.
<!--T:10-->
[[File:conditinal_formatting_line_rules_en-US.PNG|link=]]
<!--T:11-->
A rule will be automatically created where you'll have to choose what reference column, condition to the formatting implementation, and also the desired formatting.
<!--T:12-->
The rules for the rows can have the following properties edited:
<!--T:13-->
* Font styles (bold, italic, and underline);
* Font color;
<!--T:14-->
Besides, all these rules have the following pre-set formattings:
<!--T:15-->
* ''Blue background'' - applies a blue background to rows that fit into the rule condition.
* ''Green background'' - applies a green background to rows that fit into the rule condition.
<!--T:16-->
We also provide a set of predefined rules to apply to the rows. This set of rules creates three rules applying different background colors to the rows.
<!--T:17-->
All you have to do is to set the reference column and the condition to apply the formatting.
<!--T:18-->
'''Columns rules'''
<!--T:19-->
The columns rules are applied only to the desired column or cell on which the condition is true.
<!--T:20-->
To create the rules for the columns/cells, you need to select the column where you want to apply the conditional formatting, and then click on the ''Conditional Formatting'' option on the ''Column'' tab on the design [[Design Overview#SideBar|sidebar]].
<!--T:21-->
This type of rule also allows you to add symbols to the columns/cells.
<!--T:22-->
The following screen will be shown when you create a new rule to the columns.
<!--T:23-->
* If the column type is text:
<!--T:24-->
[[File:conditinal_formatting_column_text_rules_en-US.PNG|link=]]
<!--T:25-->
* If the column type is numeric:
<!--T:26-->
[[File:conditinal_formatting_column_numeric_rules_en-US.PNG|link=]]
<!--T:27-->
To facilitate use, just like the rules for the rows, rules are created automatically. You'll only have to define the condition and the formatting rule.
<!--T:28-->
One rule will be set to text columns and three for numeric columns. Besides, you can also create new rules or edit/delete an automatically created rule.
<!--T:29-->
The rules for the columns can have the following properties edited:
<!--T:30-->
* Font styles (bold, italic, and underline);
* Font color;
<!--T:31-->
Besides that, these rules also have the following predefined formatting:
<!--T:32-->
* ''Blue background'' - applies a blue background to rows that fit into the rule condition.
* ''Green background'' - applies a green background to rows that fit into the rule condition.
<!--T:33-->
We also provide three predefined sets of rules to be applied to the columns/cells.
<!--T:34-->
* ''Background color'': Creates a set of rules that will be applied as Background Color to the selected column;
* ''Traffic lights'': Creates a set of rules to apply traffic lights to the selected column;
<!--T:35-->
You will only need to configure the reference column ( the column that is going to be evaluated by the condition) and the condition to apply the rules.
<!--T:36-->
The rules for the columns also allow them to be applied to ''Totals'' (total row and total column) and the ''Others'' row when they are shown in the tables.
=== Creating a rule ===<!--T:37-->
<!--T:38-->
Click the button ''+ New Rule'' on the ''Conditional Formatting'' or use one of the predefined set of rules by clicking on the arrow next to this button.
<!--T:39-->
It is possible to select the reference column (the column that is going to be available), the condition to apply the rule and to define the value or range of figures that are going to be tested by the condition when you create a new rule. It is necessary to define the format of the condition for applying the rule after it has been configured. There are predefined formatting options, but it is possible to edit a custom formatting by clicking over the [[File:conditinal_formatting_editting_icon.PNG|link=]] icon. In this case, the following screen will be shown, allowing to edit the available properties.
<!--T:40-->
* ''Row rules''
<!--T:41-->
[[File:conditinal_formatting_format_screen_line_en-US.PNG|link=]]
<!--T:42-->
* ''Columns rules''
<!--T:43-->
[[File:conditinal_formatting_format_screen_column_en-US.PNG|link=]]
<!--T:44-->
You can add as many rules as you like.
<!--T:45-->
Examples of Rule Settings:
<!--T:46-->
<imagem ilustrando essa regra>
On the example above, three rules were added that modify the row's background color if the condition is true.
<!--T:47-->
<imagem ilustrando essa regra>
In this example, it was added a rule that applies the bold font to the row.
<!--T:48-->
<imagem ilustrando essa regra>
Here we are adding three symbols (traffic lights) determined by the values of the column.
<!--T:49-->
<imagem ilustrando essa regra>
In this example, we are adding an alert symbol and applying italics when the values are below xxxxxx.
=== Deleting a rule ===<!--T:50-->
<!--T:51-->
To delete a rule, you have to click the icon [[File:Conditinal_formatting_delete_icon.PNG|link=]] on the rule you want to remove. Use the button [[File:Conditinal_formatting_delete_all_icon.PNG|link=]] to delete all rules.
=== Changing the order of the rules ===<!--T:52-->
<!--T:53-->
You have to click the icon [[File:conditinal_formatting_order_icon.PNG|link=]] and drag the rule to the desired position to change the order of the rules. Sometimes is necessary to change the order of the rules to define an application priority. For example, the last rule on the screen has priority over the first rule. In case the rules modify the same priority. The rules are applied individually if they modify different properties.
<!--T:54-->
'''Important:'''
<!--T:55-->
* The last rule has the preference in case two rules modify the same row/column priority (background color, font color, etc).
* The columns/cells rules have priority over row rules.
=== Examples of tables with applied rules ===<!--T:56-->
<!--T:57-->
__NOTOC__
</translate>