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
integracaoti
Frequent Visitor

Crear fecha de finalización basada en la siguiente fecha de inicio de la tarea

Hola

Soy un nuevo usuario de Power BI y tengo la situación siguiente (alrededor de 500 filas y crece continuamente).

Cada identificación representa una empresa diferente (es un ID de registro), y cada vez que se produce un evento, lo registramos en nuestra base de datos (solicitud emitida, contrato creado, contrato en espera de firma, contrato firmado), por lo que es realmente un proceso paso a paso con intervalos de fecha/hora muy diferentes porque realmente depende del cliente, terminamos guardando solo la fecha de inicio ([dataInicio]).

Inherentemente, la fecha de finalización es la fecha de inicio de la siguiente tarea.

integracaoti_0-1609185452798.png

Por lo tanto, mi pregunta es, ¿cómo puedo crear una columna Fecha de finalización heredando sus valores de la fecha de inicio de la siguiente actividad. Porque al final quiero crear una línea de tiempo de eventos y crear una visualización de tiempo de entrega.

Intenté esto que encontré en el foro, después de agrupar por identificación y crear una columna de índice para cada tabla expandida:

endDateRelatedNextTask = IF(CALCULATE(MIN(eventos[Index])) = MAX(eventos[Index]),NOW(), CALCULATE(MIN(eventos[dataInicio]),FILTER(eventos,eventos[Identification] = EARLIER(eventos[Identification]) && eventos[Index] = EARLIER(eventos[Index])+1)))

pero disparó esto:

Se detectó una dependencia circular: eventos[endDateRelatedNextTask], 27be8294-902b-42c8-9948-d31633f644ae, eventos[endDateRelatedNextTask].

No pude encontrar una solución para esto Por favor, ayúdame!

Gracias de antemano

5 REPLIES 5
integracaoti
Frequent Visitor

@Ashish_Mathurtu fórmula funcionó como un encanto! Muchas gracias, con su ayuda incluso me las arreglé para hacer visualizaciones más complejas.

¡También estoy levantando el pulgar hacia arriba @StefanoGrimaldi y @MattAllington porque ustedes también me ayudaron con otras cosas! Muchas gracias por su tiempo!

De nada.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hola

¿Funciona esta fórmula de columna calculada?

endDateRelatedNextTask ? CALCULATE(MIN(events[dataInicio]),FILTER(events,events[Identification] ? EARLIER(events[Identification]) && events[dataInicio] > EARLIER(events[dataInicio])))

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

aquí un post similar que podría ayudarle a resolver esto: https://community.powerbi.com/t5/Desktop/Find-next-value-by-date/td-p/503446 resuelto.





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Mi video aquí debería ayudarte a https://youtu.be/xN2IRXQ2CvI



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

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.

Top Solution Authors