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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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