Join 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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi community,
I have one culumn with format time (ej. 20:00:05, 05:52:00, etc.),
I want to use the IF formula for search for all records that are between 23:00 and 05:00. I try with the next formula:
Cruce = IF(Iave[Hora de Cruce ]>TIMEVALUE("23:00:00") && Iave[Hora de Cruce ]<TIMEVALUE("05:00:00"),1,0)
but doesn´t work. Any suggestion for resolve this?
Regards.
Solved! Go to Solution.
I have the free version as well.
My suspicion is something wrong with your time values, maybe those are regarded as minutes, seconds, fractions or something.
If you try and shift your TIMEVALUE("05:00:00") to TIMEVALUE("00:15:00"), what happens?
Just a wild shot, actually I don't understand either why it isn't woking for you.
@Ivanfa23,
The formula MarcelBeug provides also works well in my environment. What version of Power BI Desktop do you use? Would you mind sharing me your PBIX file?
Regards,
It should be OR (||), not AND (&&).
It works fine with me, but notice the trailing space in column name "Hora de Cruce ".
I tried it again but it doesn´t work
I have Power BI Desktop Free, do you think that's the problem?
P.D. I remove the blank of "Hora de Cruce".
Regards.
I have the free version as well.
My suspicion is something wrong with your time values, maybe those are regarded as minutes, seconds, fractions or something.
If you try and shift your TIMEVALUE("05:00:00") to TIMEVALUE("00:15:00"), what happens?
Just a wild shot, actually I don't understand either why it isn't woking for you.
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |