Forum Discussion
Not summing parent aggregations
- 4 years ago
Hi russds ,
Please try the following formula:
Measure = MIN('Sample'[Available Hours]) - SUM('Sample'[Allocated Hours])If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You'd need to count the number of projects in the filter context
and use it to determine what level you are at. Something like:
VAR ProjectCount = DISTINCTCOUNT(Table[ProjectId])
RETURN
IF (ProjectCount=1, [Availability], [Available]-[Allocated])
Having reread your orignal post I think you're using implicit measures based on columns so you'd need to explicitly write a simple measure for Availability, Available and Allocated. If you want to send a demo file over I'll have a look.