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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mpsAutomation
Frequent Visitor

Obtain sum of subcategory

Hi,

 

I am tryin to make the Calculated rate the same acroos the parent task

calculate srate = budget/ forecast

The problem I have is that subtasks $ spent (spent*Calculated rate) do not equal the parent task result (in bold). So I need to make the calculated rate the same for the children of that parent task

I tried Sum(budget)/sum(forecast) but it gives me the rate of the entire job, e.g. children of task a and b, etc. is there a way to filter it? the same needs to be done for each parent task

 

Job ABudgetForecast Calculated rateSpent$ Spent
Task a          39,130           258                    15286.3 13,088.83
Subtask a          11,180             86                    1300                 -  
Subtask b          27,950           172                    16386.3  14,023.75
Task b     
Subtask d     
Subtask e     
Subtask f     
1 REPLY 1
amitchandak
Super User
Super User

@mpsAutomation , Try like

 

calculate(Sum(Table[budget])/sum(Table[forecast]), removefilter(Table[Subtaks]))

 

or

 

calculate(Sum(Table[budget])/sum(Table[forecast]), all(Table[Subtaks]))

 

 

Similar logic used here

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.