hi, still a bit new to excel power query editor.. I am looking to add a couple of calculated columns to a connected table.. (imported from another workbook)
the main table 'risk_data' contains rows of risk data including likelihood and consequence for each risk.
I have another table "tbl_matrix" in the workbook on sheet 'matrix' (below) which has risk levels and scores for each combination.
I want to create two columns in risk data table in power query editor, both based on the likelihood and consequence for each risk..
eg if a risk in the risk table has a L of 'possible' and C of 'moderate', i want a column to pull through the associated "Medium" value from the matrix and another column to similarly pull through the corresponding score value of '9'.
not sure if i can do a "lookup" in the column formula or if i need a bridging connection only query...?
i'd be grateful for any ideas?
matrix table:
the main table 'risk_data' contains rows of risk data including likelihood and consequence for each risk.
I have another table "tbl_matrix" in the workbook on sheet 'matrix' (below) which has risk levels and scores for each combination.
I want to create two columns in risk data table in power query editor, both based on the likelihood and consequence for each risk..
eg if a risk in the risk table has a L of 'possible' and C of 'moderate', i want a column to pull through the associated "Medium" value from the matrix and another column to similarly pull through the corresponding score value of '9'.
not sure if i can do a "lookup" in the column formula or if i need a bridging connection only query...?
i'd be grateful for any ideas?
matrix table:
Likelihood | Conseq | Level | Score |
Rare | Insignificant | Low | 1 |
Unlikely | Insignificant | Low | 2 |
Possible | Insignificant | Low | 3 |
Likely | Insignificant | Medium | 4 |
Almost Certain | Insignificant | Medium | 5 |
Rare | Minor | Low | 2 |
Unlikely | Minor | Low | 4 |
Possible | Minor | Medium | 6 |
Likely | Minor | Medium | 8 |
Almost Certain | Minor | High | 10 |
Rare | Moderate | Low | 3 |
Unlikely | Moderate | Medium | 6 |
Possible | Moderate | Medium | 9 |
Likely | Moderate | High | 12 |
Almost Certain | Moderate | Very High | 15 |
Rare | Major | Medium | 4 |
Unlikely | Major | Medium | 8 |
Possible | Major | High | 12 |
Likely | Major | Very High | 16 |
Almost Certain | Major | Extreme | 20 |
Rare | Catastrophic | Medium | 5 |
Unlikely | Catastrophic | High | 10 |
Possible | Catastrophic | Very High | 15 |
Likely | Catastrophic | Extreme | 20 |
Almost Certain | Catastrophic | Extreme | 25 |