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

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.

Reply
Anonymous
Not applicable

populating a colmnn based on the aggregate of a number of rows expressed as a %

So, i have 2 models Tasks and Subtasks, in each model I have pulled in data from a 3rd model which contains the weight of the task and subtask.

 

What i need to do is populate the task model with the total work completed from the children subtasks

 

Input - Subtasks

 

keyparentStatusWeightValue
 12345 11111in progress100
 23456 11111new75

0

 34567 11111done55
4567811111done7575
 56789 11111done1010
5432112345in progress50
4321012345done75

75

 

Output - not sure what the best thing to do here is, as I want to work out the % of work completed - Tasks Model

 

KeyStatusValue(from subtasks) %
1111in progress51.42
12345in progress93.76

 

Thanks in advance for any information on how to do this.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , In this this should a new measure

 

Divide(Sum(Table[Value]), Sum(Table[Weight]))

 

or

 

Divide(Calculate(Sum(Table[Weight]), Filter(Table,Table[Status]="Done"))  , Sum(Table[Weight]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@amitchandak thanks, i took the first one and after messing around a while realised it worked and was looking at the data incorrectly.

amitchandak
Super User
Super User

@Anonymous , In this this should a new measure

 

Divide(Sum(Table[Value]), Sum(Table[Weight]))

 

or

 

Divide(Calculate(Sum(Table[Weight]), Filter(Table,Table[Status]="Done"))  , Sum(Table[Weight]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.