The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hola
Me gustaría saber si cómo voy a hacer una columna para el turno equivalente del tiempo dado
1er Turno: 6am - 2pm
2º Turno: 14h - 22h
3er Turno: 10pm - 6am
Gracias
Hola @Vonn
Como alternativa, puede crear una columna calculada como se muestra a continuación utilizando las funciones TIME DAX:
puedes probar esto en PQ
=if DateTime.Time([Date]) >= #time(6, 0, 0) y DateTime.Time([Date]) < #time(14,0,0) then "1st Shift" else if DateTime.Time([Date]) >= #time(14,0,0) and DateTime.Time([Date]) <#time(22,0,0) then "2nd Shift" else "3rd Shift"
o crear una columna DAX
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.