cancel
Showing results for
Did you mean:
Helper III

## Time Filter - 19:00-07:00

I have a column with 60,000+ rows, the format of which is:

07:00

08:23

22:01

Any idea how I could apply a quick filter for times between 19:00 - 07:00?

1 ACCEPTED SOLUTION
Microsoft

Based on my test, you could refer to below formula:

`Column = IF([Time]>=TIME(19,0,0)||[Time]<=TIME(7,0,0),1,0)`

Result:

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 REPLIES 6
Microsoft

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Microsoft

Based on my test, you could refer to below formula:

`Column = IF([Time]>=TIME(19,0,0)||[Time]<=TIME(7,0,0),1,0)`

Result:

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User

You can filter the data inside Power Query by filtering on the time column

Anonymous
Not applicable

As part of your data import, do a "Split Columns by Delimiter".  Now you have an Hours and Minutes column, setting as numeric.  Set your filter to be if the hours column is greater than or equal to 19 or less than or equal to 7

Helper III

If I do a filter of :

is greater than or equal to 19, and lower than or equal to 7

It shows 0 records. Which is strange because there are records in that range.

Anonymous
Not applicable

Change it from AND to OR

Announcements

#### Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

#### Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors