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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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? 


@ 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

 


@ 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.