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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.