Forum Discussion

az12's avatar
az12
New Member
3 years ago
Solved

Time Comparison gives wrong answer

Hi,   I'm trying to filter my data (telephone calls events) to only include calls that take place during work hours. Unfortunately the conditional statement I'm using returns the wrong answer from ...
  • Greg_Deckler's avatar
    3 years ago

    az12 Can't replicate this. Try this though:

    Call During Working Hours = IF( ('EVENT'[Local Start Time] - TRUNC('EVENT'[Local Start Time]) ) <= ('EVENT'[Working Day Closing Time] - TRUNC('EVENT'[Working Day Closing Time]) ),1,0)