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
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors