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
dude95
Resolver I
Resolver I

Combinar tablas: obtenga una columna de la fecha más reciente en una columna (proyecto, tablas de estado del proyecto)

Parece que esto no debería ser tan difícil, pero estoy luchando. Tengo dos mesas

Tabla de proyectos

ID del proyecto
0000001
0000002

Tabla ProjectStatus

ID del proyectoFecha de estadoEquipoStatusInd
000000112/19/20PmoRojo
000000112/12/20PmoVerde

Hay varios informes que me gustaría mostrar el estado más reciente (más reciente)Ind para un proyecto codificado de forma rígida para el equipo PMO. En el ejemplo, desea mostrar el proyecto 000001 - Rojo.

¿Debería ser sólo una medida o Dax? ¿Cómo sería la fórmula. He estado buscando, pero no he conseguido exactamente lo que necesito. Tia.

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@dude95

Cree un objeto visual de tabla e inserte el identificador de proyecto desde la tabla de proyectos y cree la siguiente medida

Measure = 
var _Date = 
MAXX(
    FILTER(
        Proejctstatus,
        Proejctstatus[project id] = SELECTEDVALUE(Project Table[Project ID])
    ),
    Proejctstatus[Status Date]
) 

var _Status = 
MAXX(
    FILTER(
        Proejctstatus,
        Proejctstatus[project id] = SELECTEDVALUE(Project Table[Project ID]) && Proejctstatus[Status Date] = _Date 
    ),
    Proejctstatus[StatusInd]
) 

return
_Status 

________________________

Si mi respuesta fue útil, haga clic en Aceptarla como la solución para ayudar a otros miembros a encontrarla útil

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂


Sitio web Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
dude95
Resolver I
Resolver I

Esto fue perfecto - Acabo de añadir esto al final para que todos los proyectos todavía se mostrarían incluso si no tenían un informe de estado de la PMO enviado todavía. Gracias por una gran solución!

var _AllStatus = 
concatenate(_Status, "")
return
_AllStatus

Fowmy
Super User
Super User

@dude95

Cree un objeto visual de tabla e inserte el identificador de proyecto desde la tabla de proyectos y cree la siguiente medida

Measure = 
var _Date = 
MAXX(
    FILTER(
        Proejctstatus,
        Proejctstatus[project id] = SELECTEDVALUE(Project Table[Project ID])
    ),
    Proejctstatus[Status Date]
) 

var _Status = 
MAXX(
    FILTER(
        Proejctstatus,
        Proejctstatus[project id] = SELECTEDVALUE(Project Table[Project ID]) && Proejctstatus[Status Date] = _Date 
    ),
    Proejctstatus[StatusInd]
) 

return
_Status 

________________________

Si mi respuesta fue útil, haga clic en Aceptarla como la solución para ayudar a otros miembros a encontrarla útil

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂


Sitio web Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.