Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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" )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |