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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jeongkim
Post Prodigy
Post Prodigy

Count values excluding particular time

Hi,

 

How can I not count or Cancel Time between 00:00am to 06:00am? 

 

jeongkim_0-1751561159403.png

 

1 ACCEPTED SOLUTION
ajaybabuinturi
Solution Sage
Solution Sage

Hi @jeongkim,
I am asuming your asking about a DAX logic to not count the rows b/w 00:00am to 06:00am. You can try with below logic.

Cancel Count Daytime =
CALCULATE(COUNTROWS('TableName'),
    FILTER('TableName', HOUR('TableName'[Cancel Time]) >= 6)
)

Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.

View solution in original post

1 REPLY 1
ajaybabuinturi
Solution Sage
Solution Sage

Hi @jeongkim,
I am asuming your asking about a DAX logic to not count the rows b/w 00:00am to 06:00am. You can try with below logic.

Cancel Count Daytime =
CALCULATE(COUNTROWS('TableName'),
    FILTER('TableName', HOUR('TableName'[Cancel Time]) >= 6)
)

Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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