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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors