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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Help!!!! Deadline approaching!! Formula to identify the current hour

I am attempting to use this calculated column as a filter so i can use it conjuction with a similar formula for "count today" 
 
the "Count today" is working but "is this hour" work with it. Any suggestions?
 
Count Today =
CALCULATE ( [Count of ID],'Date'[Date]=TODAY() )
 
IS This Hour =
VAR NotifcationHour =
HOUR( NotificationData[Notification_Time] )
VAR ThisHour =
HOUR( NOW ())
RETURN
IF ( ThisHour = NotifcationHour, "yes", "no" )
1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous Can't see any issue with your formula...

 

image.png

 

Create a New Measure as below to count the CurrentHourFlag

 

Test259 = COUNTX(FILTER(Test259CurrHour,Test259CurrHour[CurrentHourFlag]="Yes"),Test259CurrHour[CurrentHourFlag])

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@Anonymous Can't see any issue with your formula...

 

image.png

 

Create a New Measure as below to count the CurrentHourFlag

 

Test259 = COUNTX(FILTER(Test259CurrHour,Test259CurrHour[CurrentHourFlag]="Yes"),Test259CurrHour[CurrentHourFlag])

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors