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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I am trying to create a column with empty values if it's not the current hour, else return NOW.
I tried this:
@Anonymous ,
Try this one:
CurrentHour = IF(YEAR(Datatime_long[Date]) = YEAR(TODAY()) && Datatime_long[Time] = HOUR(NOW()), "NOW","")
OR
CurrentHour = IF(
DATE(YEAR(Datatime_long[Date]), MONTH(Datatime_long[Date]), DAY(Datatime_long[Date])
= TODAY() && Datatime_long[Time] = HOUR(NOW()), "NOW","")