Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All, I'm hoping that this is a quick fix and is something obvious i'm missing...
The below doesnt seem to be working correctly for me. There are no errors with syntax so my assumption is that there is an issue comparing the [ReceivedTime] field and the TIMEVALUE?
InWorkingHours = SWITCH( AND (SELECTEDVALUE ( 'SysAid Extract'[ReceivedTime] ) >= TIMEVALUE("09:00:00") , SELECTEDVALUE ( 'SysAid Extract'[ReceivedTime] ) < TIMEVALUE("17:00:00")), TRUE , FALSE )
I've also tried amending the TIMEVALUE function to TIME, but am having the same issue. Each return is FALSE regardless of if the [ReceivedTime] is between 9 and 5.
Any ideas?
Solved! Go to Solution.
Hi @javirmerino
I'm just seeing that the switch is not constructed correctly. Check out hot it works here:
Try this:
InWorkingHours =
IF (
AND (
SELECTEDVALUE ( 'SysAid Extract'[ReceivedTime] ) >= TIMEVALUE ( "09:00:00" ),
SELECTEDVALUE ( 'SysAid Extract'[ReceivedTime] ) < TIMEVALUE ( "17:00:00" )
),
TRUE,
FALSE
)
For the pbix, you have to share the URL to the file hosted elsewhere: Dropbox, Onedrive... or just upload the file to a site like tinyupload.com (no sign-up required).
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
Hi @javirmerino
Can you share a sample pbix that reproduces the issue? It would then be more feasible to see what might be going on.
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
Hi @javirmerino
I'm just seeing that the switch is not constructed correctly. Check out hot it works here:
Try this:
InWorkingHours =
IF (
AND (
SELECTEDVALUE ( 'SysAid Extract'[ReceivedTime] ) >= TIMEVALUE ( "09:00:00" ),
SELECTEDVALUE ( 'SysAid Extract'[ReceivedTime] ) < TIMEVALUE ( "17:00:00" )
),
TRUE,
FALSE
)
For the pbix, you have to share the URL to the file hosted elsewhere: Dropbox, Onedrive... or just upload the file to a site like tinyupload.com (no sign-up required).
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
13 | |
11 | |
8 | |
8 | |
8 |