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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JonSwed
Advocate II
Advocate II

Convert a whole number to an hour

Hi Wizards,

I'm working with Google Analytics data from BigQuery. I've succeeded in extracting hour from my hit time stamps, so now I have a column of whole numbers in a range of 1 - 24. I want to convert these to hours but I'm getting an error when I do so. Is it that it does not expect the presence of 24, and that this should be rewritten as 00?

Any suggestions gratefully accepted

2 REPLIES 2
Anonymous
Not applicable

Hi @JonSwed ,

 

Can you show some sample data and expected result?

 

Best Regards,

Jay

amitchandak
Super User
Super User

@JonSwed , Not very clear on the context

 

Hour = Quotient([col],24)

remaining= Mod([col],24)

 

Refer if needed:https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-usi...

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors