Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
cbanda
Frequent Visitor

Crear columna Turno Dia y Noche

Buenas noches deseo crear una columna de acuerdo a la hora turno Dia y Noche, de El rango de hora

6:00 a 17:00 (DÍA) 

18:00 a 5:00 (Noche)

Captura crear columnaCaptura crear columna

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @cbanda ,

 

How about this :

tackytechtom_0-1683253569896.png

 

 

Here the code for the custom column:

if Time.Hour([Hora]) >= 6 and Time.Hour([Hora]) < 17 then "DÍA" else "Noche"

let me know if this helps  🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

1 REPLY 1
tackytechtom
Super User
Super User

Hi @cbanda ,

 

How about this :

tackytechtom_0-1683253569896.png

 

 

Here the code for the custom column:

if Time.Hour([Hora]) >= 6 and Time.Hour([Hora]) < 17 then "DÍA" else "Noche"

let me know if this helps  🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.