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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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