The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
13 | |
8 | |
8 |