Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone, i'm having a little trouble with this If statement, where i'm trying to check by the "EndHour" if its "Morning" or "Evening" shift. Everything works perfectly from this point:
= Table.AddColumn(#"Renamed Columns1", "Shift", each if [Hora_Salida] <= Time.FromText ("4:30:00 PM") then "Matutino" else "Vespertino" )
But i found that theres some records where the "EndHour" is "Null" but i do not know how to use the nested if to check that if the "EndHour" is Null then to compare with the "StartHour"
Will appreciate if anyone can help me with it
@Luiwujamak , Based on what I got, change as per need
Table.AddColumn(#"Renamed Columns1", "Shift", each if [Hora_Salida] <> null and [Hora_Salida] <= Time.FromText ("4:30:00 PM") then "Matutino" else "Vespertino" )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |