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! Request now

Reply
waleed55
Frequent Visitor

counting rows on the date column where the time > 5:30 pm

hi i want to counting rows on the date column where the time > 5:30 pm how can do that

3 REPLIES 3
Anonymous
Not applicable

Hi  @waleed55 ,

 

Here are the steps you can follow:

1. Create measure.

Flag =
IF(
MAX('Table'[Column1]) >
 DATE(YEAR(MAX('Table'[Column1])),MONTH(MAX('Table'[Column1])),DAY(MAX('Table'[Column1]))) + TIME(17,30,0),1,0)
Count =
COUNTX(
ALLSELECTED('Table'),[Flag])

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_0-1693281018611.png

3. Result:

vyangliumsft_1-1693281018613.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

waleed55
Frequent Visitor

hi i don't want to create a new column i want to create measure only

 

Greg_Deckler
Community Champion
Community Champion

@waleed55 So maybe something like this:

Column 2 = 
    VAR __530 = 1/24/2 * ( 17.5 * 2 )
    VAR __Value = [Column]
    VAR __Result = IF( __Value >= __530, 1, 0)
RETURN
    __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors