Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
skors
Regular Visitor

Percentage of row total - Milestones

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).

 

Milestone Table.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.