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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lgeraeds
Frequent Visitor

If time in column is greater than, then 1 else 0

I have a Time data type column called "Aantal uren" with time values in it formatted like 04:48:00. I want to make a second column that does an if statement which checks if the value is greater then 08:00:00. 

 

I have tried doing it by this:

 

Column =
IF(([Aantal uren])>TIME(08,00,00),1,0)

But that gives me a strange result, for example, there is a value 04:34:47 in my column and the above formula gives 1 for result. The same happens with value 02:59:14
 
I have also tried it with IF(([Aantal uren])>8,1,0) but that does the same thing. 
 
Thank you for your help.
1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @lgeraeds 

 

Have you checked the AM and PM of those two times?

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1629897916061.png !!

View solution in original post

2 REPLIES 2
lgeraeds
Frequent Visitor

That was the problem, thanks! 

VahidDM
Super User
Super User

Hi @lgeraeds 

 

Have you checked the AM and PM of those two times?

 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1629897916061.png !!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.