Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello everyone, I have a column in the datetime table that extracts the time and put a column with a fixed time (16:00). I need to compare the two columns and return 1 or 0, but the formula I made is not working.
Thanks for the help 🙂
Solved! Go to Solution.
Seems to work ok.
Table 2 = ADDCOLUMNS(DATATABLE("Column1",DATETIME,{{"24 Feb 2023 14:56:17"}}),"Compare",if(TIMEVALUE([Column1])>TIMEVALUE("16:00:00"),1,0))
Keep in mind that when no date value is specified a date of 12/30/1899 is assumed which is of course less that 24 Feb 2023.
Seems to work ok.
Table 2 = ADDCOLUMNS(DATATABLE("Column1",DATETIME,{{"24 Feb 2023 14:56:17"}}),"Compare",if(TIMEVALUE([Column1])>TIMEVALUE("16:00:00"),1,0))
Keep in mind that when no date value is specified a date of 12/30/1899 is assumed which is of course less that 24 Feb 2023.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 43 | |
| 31 | |
| 27 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 114 | |
| 58 | |
| 39 | |
| 35 |