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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
zurimae
Frequent Visitor

New measure to count any event over 24 hours

Hi, i need to create a measure that will give me a count of any time over 24 hours.  For example these are in hours. as you can see only one is >24hours, but i need a measure that will count this. 

zurimae_0-1676905910401.png

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @zurimae

try like:

Count =
COUNTROWS(
    FILTER(
        TableName,
        TableName[ColumnName]>=24
    )
)

 

View solution in original post

4 REPLIES 4
FreemanZ
Super User
Super User

hi @zurimae

try like:

Count =
COUNTROWS(
    FILTER(
        TableName,
        TableName[ColumnName]>=24
    )
)

 

that worked! thank you so much!

tamerj1
Super User
Super User

Hi @zurimae 

what are slicing by in this visual?

what do you mean slicing by? this is hours of start to end. the formula is putting hours/min into decimals to calculate easier. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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