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
EduardoVaz
New Member

Total Hours per Company per Professional

Hi all!!

 

I want to show the total hours per company per professional. The hours I collect in minutes which are converted to hours through a function in the database. The "Realizado" column shows the result of this conversion, and the "Realizado (h)" column is the original data in minutes, as you can see in the image below.

 

EduardoVaz_0-1673537929459.png

 

When I bring it to Power BI the result comes in the same way.

 

EduardoVaz_1-1673538962259.png

 

I want to display the total hours logged per user per company, but I am not able to present it that way, as there is no option to add up the hours.

 

EduardoVaz_2-1673540712299.pngEduardoVaz_4-1673540742670.png

 

How can I solve it?

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @EduardoVaz ,

 

Now that you have column with hour numbers, you can create a measure like this, and when this measure is put into the values of the matrix, the total will return the sum of the time.

Time =
VAR _num =
    SUM ( 'Table'[Realizado (h)] )
VAR _HOUR =
    ROUNDDOWN ( _num, 0 )
VAR _MINUTE =
    MOD ( _num, 1 )
RETURN
    TIME ( _HOUR, _MINUTE * 60, 0 )

vstephenmsft_0-1673856915458.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @EduardoVaz ,

 

Now that you have column with hour numbers, you can create a measure like this, and when this measure is put into the values of the matrix, the total will return the sum of the time.

Time =
VAR _num =
    SUM ( 'Table'[Realizado (h)] )
VAR _HOUR =
    ROUNDDOWN ( _num, 0 )
VAR _MINUTE =
    MOD ( _num, 1 )
RETURN
    TIME ( _HOUR, _MINUTE * 60, 0 )

vstephenmsft_0-1673856915458.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tackytechtom
Super User
Super User

Hi @EduardoVaz ,

 

You cannot sum up the values from realisado since it has the type text "00:12". You should be able to creeate a meeasure by using the realisado (h) since this is in the format number.

 

Would it solve your issue if you just use the realisado (h) column instead?

 

Let me know 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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