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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Jodine
New Member

time filters - afterhours

hi, im trying to filter data based in time stamps, for after hours, 16:30 and 7:30. 

 

atfer hours = SWITCH(true(),Main[Start Time]>= TIMEVALUE("04:31 PM") && Main[End Time]<TIMEVALUE("07:30 AM"),1,0) but this statement just returns true for everything

 

please help

2 REPLIES 2
Jodine
New Member

Column = SWITCH(TRUE(), Main[time] > TIMEVALUE("16:30:00 PM") && Main[End Time - Copy] < TIMEVALUE(" 7:30:00 AM"), 1,0)
 
this also just gives the false

Hi @Jodine ,

 

I made a sample but it works. Please check

vstephenmsft_1-1675239481495.png

vstephenmsft_0-1675239332432.png

If still in doubt, please provide some sample data along with the expected outcome. Remember to protect your privacy.

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

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 MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.