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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mmp
Helper I
Helper I

Measure with all function gives wrong total

Hello,

 

I am trying to calculate the number of hours passed on a projet by my consultants.

 

So basically I have projects and many consultants that are working on it.

 

I would like to aggregate the total hours done by all the consultant on a project (here column ttle) but it displays the wrong total.

 

Depending on that i create a measure rst that gives me the time left for the project and i can calculate the consultant work rate.

 

Capture d’écran 2020-02-10 à 10.06.30.png

Here is the data model:

 

Capture d’écran 2020-02-10 à 10.33.21.png

 

Here is the code for my measures :

ttle = CALCULATE( 
[Nombre Heures ttl];
ALL(SystemUser[fullname])
)

rst = [Nombre Heures vendues]-[ttle]


DIVIDE([rst]/12;151,67;0))

 

Could you please provide me some hints or a way to achieve and getting the right results ?

 

Kind regards,

 

Mohammad

3 REPLIES 3
amitchandak
Super User
Super User

Refer, if this can help

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

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

@amitchandak thank you for your answer but in the link you gave me, it's not the same problem.

 

Kind regards,

 

Mohammad PATEL

Hi @mmp 

 

You might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive or dropbox and share the link to the file. 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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