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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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