Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
When I bring it to Power BI the result comes in the same way.
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.
How can I solve it?
Thanks in advance.
Solved! Go to Solution.
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 )
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.
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 )
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.
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! | |
#proudtobeasuperuser | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
50 | |
42 | |
40 |