cancel
Showing results for
Did you mean:

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

New Member

## Hep with the formula

Hi

I have a formula below for calculating the sum of gross risk potential in the table. I want the sum calculation based on the risk name instead of summing up the entire column. I tried the below formula but it is not giving the correct value.

I can give an example

The total sum of gross risk potential is 100. But the gross risk potential for risk A is 20. I want to get this separate value for all the risks i have in a single column without creating multiple columns.

`TotalRiskPotentialPerRisk =SUMX(    VALUES(Top_Risk_Controls[Riskname]),    CALCULATE(        SUM(Top_Risk_Controls[Gross_risk_potential]),        Top_Risk_Controls[Riskname] = EARLIER(Top_Risk_Controls[Riskname])    ))`

In the above formula, im getting the same values as the gross risk potential column instead of the sum of them based on the risk name. How to get the sum of the values based on the risk name.

Please note that the data source is the sharepoint list.

6 REPLIES 6
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

New Member
 Riskname Controls Gross_risk_potential Actual_risk_reduction Gross_potential_burndown Actual_risk_burndown Vendor-service transitions A £10 £10 50 10 Vendor-service transitions B £20 £5 45 5 Vendor-service transitions C £30 £5 40 0 Unavailability of IT systems & services D £10 £10 50 10 Unavailability of IT systems & services E £20 £5 45 5 Unavailability of IT systems & services F £30 £5 40 0

In tha above table, i have gross potential for each controls and each control is mapped against different risks. I just gave an example of two risks here but i have multiple risks in the original data. I want to create a single formula for the burndown columns

For that,

1. I have to add up the sum of gross_risk_potential and actual_risk_reduction for each of the risk separately

2. There should be cumulative reduction of the values from the sum. For eg- Vendor-service transitions risk has the total sum of 60. Control A has gross potential of 10. The gross_potential_burndown should be 50. For control B it would be 50(previous value)-20(present value)=30

Basically i want all the above 2 points i.e summing up gross_risk_potential and actual_risk_reduction for each of the risk separately and doing cumulative subtraction for each row.

The closest formula i got was calculating the sum value for each risk separately which implies creating multiple columns and doing the cumulative subtraction. Is there a way easier than this?

Super User

The first item is simple

For your second item you need to provide a sort order.  Is it supposed to be alphabetic by Controls?

Not sure what the expected outcome should look like for point 2.

New Member

Hi,

1. Can you please tell me what will be the calculation for the summing up which you did in the above picture?

2. I have given the expected outcomes in the last two columns of the table- Gross risk burndown and actual risk burndown.

 iskname Controls Gross_risk_potential Actual_risk_reduction Completed date Gross_potential_burndown_remaining Actual_risk_burndown Risk 1 A £10 £5 04-04-2024 35-20=535=sum of gross risk potential based on the risk name till time period(04-04-2024)20=gross risk potential for control A and control B as the completion date is same for both the controls 35-15(10+5)=20 Risk 1 B £20 £10 04-04-2024 35-20=535=sum of gross risk potential based on the risk name till time period(04-04-2024)20=gross risk potential for control A and control B as the completion date is same for both the controls 35(gross risk potential)-15(10+5)=2035=total sum of Risk 1 C £5 £2 30-04-2024 5-5=01st 5=last gross risk potential before the completion date(30-04-2024)2nd 5=gross risk potential for control C 35-17(5+10+2)=18 Risk 2 D £10 £5 04-04-2024 50-10=4050=total sum of sum of gross risk potential based on the risk name10=gross risk potential for control D  until the time period. 40 Risk 2 E £25 £10 30-04-2024 40-40=040= Total sum of gross risk potential until the time period(30-04-2024)40=sum of gross potential for controls E and F as the completion date is same for both of them 35 Risk 2 F £15 £4 30-04-2024 40-40=040= Total sum of gross risk potential until the time period(30-04-2024)40=sum of gross potential for controls E and F as the completion date is same for both of them 35  I want the last two columns, gave a desirable output along with the calculation. Based on the last two columns i want to create a burndown for the risks on how they are reducing on a regular period with the implementation of controls
Super User

1. I used implicit measures directly in the visual.

2. I am very much lost, I don't understand a single one of these calculations. I hope someone else can help you further.

New Member

Can you please help me figure out how to get the 1st point values in a formula rather than in a visual. I need a column of those calculations so that i can try to figure out the second part of the problem. Im not able to get the calculations in a column using any formula.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors