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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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