Creating a Risk Matrix
- Wrap your manually created or macro generated source table in the Pivot Table macro
Configure the Pivot Table macro
Row Labels Likelihood Column Labels Impact Calculated Column Page Operation Type Count
- Additional parameters: hide totals of the pivot table if required
- Wrap your manually created or macro generated source table subsequently in the Pivot Table, Table Transformer #1, Table Transformer #2, and Table Transformer #3 macros
Configure the Pivot Table macro
Row Labels Severity Column Labels Probability Calculated Column Key Operation Type Count The hide totals option is also enabled
- Configure the Table Transformer #1 macro: here we correctly process empty cells and make sure that everything will be working fine if any status types from the 'Probability' column are not present in the current source table
SQL
- Configure the Table Transformer #2 macro: here we make sure that everything will be working fine if any status types from the 'Severity' column are not present in the current source table.
Before applying the SQL query given below, navigate to the Settings tab and enable both "Transpose source tables" and "Transpose result table" options
SQL
- Configure the Table Transformer #3 macro: here we color the Risk Matrix based on its column and rows statuses.
To learn more about the FORMATWIKI function, visit the "Advanced table cells formatting" page
SQL