The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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","")
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |