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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply

add a number before decimal point if after = 60

Hi all,

 

I have created a column in BI which represents the time, however I need to use it in a declimal format.

 

Due to this, is there a formula where it would say 

 

"If the number after the decimal is 60+, add 1 to the number before the decimal point"

 

This would then be perfect for a time reading format.

 

Hope that makes sense.

 

Thanks

4 REPLIES 4
Greg_Deckler
Super User
Super User

Can you post a few examples of the input and expected output? 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you for the reply.

 

Yes sure, see attached.

 

In the 'Hold in Mins' column, I have it saved as a decimal format and in the second pic, it comes up with 1.89 minutes when of course it should say 2 mins 29 secs.

 

CheersDoc1.pngDoc2.png

Take a look at this article and see if it gets you where you need to be:

 

https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@TheLegendTamer change to Average to Sum, Now its Average to Average time will decrease,  so use SUM value 

 

 

Regards,

Chetan K

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.