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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors