Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |