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
cmcdowall
New Member

Asignación de un tiempo a un período de tiempo

Oye

Como ejemplo. Si tengo algunos datos sobre cuándo la gente se ha registrado en el trabajo.

Nombre del empleadoHora de entradaPeríodo de tiempo
Pato Lucas06:22:17?
Goofy12:56:24?
Wayne Rooney21:22:39?

Quiero agregar una columna calculada que trabaje el período de tiempo en el que cae el check-in.

Los límites Inicio y Fin del Período de tiempo se basarán en una tabla independiente a continuación.

Período de tiempoInicio de la horaTime End
106:00:0010:00:00
210:00:0016:00:00
316:00:0019:00:00
419:00:0000:00:00

Quiero que se configure de una manera que cuando actualizo el inicio de la hora y el fin del tiempo en esta tabla mi período de tiempo en la primera tabla se actualizaría.

Muchas gracias,

@amitchandak @parry2k

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cmcdowall ,

Puede obtener una nueva columna como esta en la tabla 2. Y usted puede unirse a ambos tabla en el id de tiempo

Id. de tiempo: maxx(filter(Table2, table1[Check In Time]>-table2[Time Start] && table1[Check In Time]<table2[Time End]),Table2[Time Period])

Además, puede obtener una columna como , Pero mejor unir dos tabla

hora de inicio: maxx(filter(Table2, table1[Time id]-table2[Time Period]),Table2[Time Start])

Aprecia tus Felicitaciones.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@cmcdowall ,

Puede obtener una nueva columna como esta en la tabla 2. Y usted puede unirse a ambos tabla en el id de tiempo

Id. de tiempo: maxx(filter(Table2, table1[Check In Time]>-table2[Time Start] && table1[Check In Time]<table2[Time End]),Table2[Time Period])

Además, puede obtener una columna como , Pero mejor unir dos tabla

hora de inicio: maxx(filter(Table2, table1[Time id]-table2[Time Period]),Table2[Time Start])

Aprecia tus Felicitaciones.

amitchandak
Super User
Super User

No lo entendí completamente. Por favor, explique con un ejemplo

Pero usted puede obtener una tabla de tiempo como :https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

Trabajo entre período :https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

Aprecia tus Felicitaciones.

Gracias por tender la mano.

Como ejemplo. Si tengo algunos datos sobre cuándo la gente se ha registrado en el trabajo.

Nombre del empleadoHora de entradaPeríodo de tiempo
Pato Lucas06:22:17?
Goofy12:56:24?
Wayne Rooney21:22:39?

Los límites Inicio y Fin del Período de tiempo se basarán en una tabla independiente a continuación.

Período de tiempoInicio de la horaTime End
106:00:0010:00:00
210:00:0016:00:00
316:00:0019:00:00
419:00:0000:00:00

Quiero que se configure de una manera que cuando actualizo el inicio de la hora y el fin del tiempo en esta tabla mi período de tiempo en la primera tabla se actualizaría.

parry2k
Super User
Super User

@cmcdowall no sé si entendí tu pregunta. Tiene una tabla de datos y desea traer estas columnas de inicio y fin de tiempo en la tabla de datos, ¿correcto? si ese es el caso, ¿puede compartir cómo se ve la tabla de datos?

Lea este post para obtener su respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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