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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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