cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnbradbury Helper III
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

Accepted Solutions
Microsoft
Microsoft

Re: Time Filter - 19:00-07:00

Hi @johnbradbury,

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:

1.PNG

 

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.

View solution in original post

6 REPLIES 6
Ross73312 Community Champion
Community Champion

Re: Time Filter - 19:00-07:00

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

Thejeswar Solution Sage
Solution Sage

Re: Time Filter - 19:00-07:00

Hi @johnbradbury,

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

johnbradbury Helper III
Helper III

Re: Time Filter - 19:00-07:00

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.

Ross73312 Community Champion
Community Champion

Re: Time Filter - 19:00-07:00

Change it from AND to OR

Microsoft
Microsoft

Re: Time Filter - 19:00-07:00

Hi @johnbradbury,

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:

1.PNG

 

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.

View solution in original post

Microsoft
Microsoft

Re: Time Filter - 19:00-07:00

Hi @johnbradbury,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

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.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors