Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have recently developed a measure in a context where filters are used to add up the total hours, but the result is not correct.
Solved! Go to Solution.
Hi @evega,
Add this as a Calculated Column:
Total Time =
VAR _TotalHours = INT ( LEFT ( Table[Horas] , 2 ) )
VAR _TotalMinutes = INT ( RIGHT ( Table[Horas] , 2 ) )
RETURN
_TotalHours + (_TotalMinutes / 60 )
Below is a screenshot of the output. Hope this helps! 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hi @evega,
Add this as a Calculated Column:
Total Time =
VAR _TotalHours = INT ( LEFT ( Table[Horas] , 2 ) )
VAR _TotalMinutes = INT ( RIGHT ( Table[Horas] , 2 ) )
RETURN
_TotalHours + (_TotalMinutes / 60 )
Below is a screenshot of the output. Hope this helps! 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
@evega what Data Type is your Horas column?
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
The data type is time, but I'll try to switch to text
Hi @evega, that would be good if you could convert to text. Alternatively, I am happy to adjust to get you the output required.
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.