Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear Power BI people,
I have a delicate issue that I don’t manage to solve by myself, so I wanted to reach out to you. I have seen that the same problem has been posted a lot of times, but the proposed solutions does not work out for me.
Here it is:
In the table beneath, you can see a lot of milestones in a specific project. What I want to do is to calculate the weight of each milestone based on their workload (duration) in percent.
I know I can do this easily by applying the function” show value as percent of grand total”, but I really need this as a measure (or column?) because I want to use it further on in other calculations. I know the calculation is really simple (workload in days per milestone / total duration), but I am not able to do this in Power BI.
I have tried this with no luck:
Duration total for Action Title = DIVIDE(SUM(Actions[Duration];CALCULATE(SUM(Actions[Duration];ALLSELECTED(Actions[Duration])))))
By the way: the duration (execution days per milestone) field is calculated as follows:
Duration = DATEDIFF(Actions[StartDate];Actions[Deadline];DAY).
Solved! Go to Solution.
HI @skors,
IF [Duration] means calculate column, you can try to use below measure:
Duration total for Action Title =
DIVIDE (
CALCULATE ( SUM ( Actions[Duration] ); VALUES ( Actions[Actions Title] ) );
CALCULATE ( SUM ( Actions[Duration] ); ALLSELECTED ( Actions ) );
-1
)
Regards,
Xiaoxin Sheng
HI @skors,
IF [Duration] means calculate column, you can try to use below measure:
Duration total for Action Title =
DIVIDE (
CALCULATE ( SUM ( Actions[Duration] ); VALUES ( Actions[Actions Title] ) );
CALCULATE ( SUM ( Actions[Duration] ); ALLSELECTED ( Actions ) );
-1
)
Regards,
Xiaoxin Sheng
Wonderful, thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |