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,
Need help on converting HH:MM:SS to Integer in power bi report builder.
1. using SQL Query, created Data source and Data sets in Power Bi report builder.
2. have column HH:MM:SS (01:00:00) need to convert to the decimal number as we do in excel. (example .343444)
Please le me know if you need further details,
Regards
Solved! Go to Solution.
@evvxp13
What unit do you want it to display? Hours, minutes or seconds?
You can just convert time to integer using sql.
How to convert hh:mm:ss to seconds in SQL Server with more than 24 hours - Stack Overflow
How to display a time span of seconds in hh:mm:ss format in Reporting Services - Stack Overflow
If you want to calculate in report builder. You will need to sum the field using split. Please refer to the split expressions in reply, just sum the hours*3600+minute*60+seconds.
Totalling HHMMSS in SSRS (microsoft.com)
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@evvxp13
What unit do you want it to display? Hours, minutes or seconds?
You can just convert time to integer using sql.
How to convert hh:mm:ss to seconds in SQL Server with more than 24 hours - Stack Overflow
How to display a time span of seconds in hh:mm:ss format in Reporting Services - Stack Overflow
If you want to calculate in report builder. You will need to sum the field using split. Please refer to the split expressions in reply, just sum the hours*3600+minute*60+seconds.
Totalling HHMMSS in SSRS (microsoft.com)
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@evvxp13
Check if this works:
New Column = HOUR([TimeColumn]) + MINUTE([TimeColumn])/60 + SECOND([TimeColumn])/60/60
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
83 | |
75 | |
64 | |
39 | |
34 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |