Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
eh
Mi tabla sigue esta estructura:
identificación | fecha | estado |
1 | 14/02/2021 | error |
1 | 19/06/2020 | De acuerdo |
2 | 30/05/2021 | De acuerdo |
3 | 16/01/2021 | De acuerdo |
3 | 22/04/2021 | error |
4 | 29/12/2020 | De acuerdo |
Como puede ver, cada id puede tener más de una fila, pero siempre con fechas diferentes.
Quiero crear una tabla calculada solo con las filas donde el año es igual al año actual y obtener solo la FECHA MÁXIMA de cada id. Por lo tanto, la tabla calculada en la tabla anterior debe ser:
identificación | fecha | estado |
1 | 14/02/2021 | error |
2 | 30/05/2021 | De acuerdo |
3 | 22/04/2021 | De acuerdo |
¿Cómo puedo hacer esto?
Solved! Go to Solution.
@req7
Cree una tabla de la siguiente manera:
FILTER(
Table1,
year(Table1[Date]) = year(TODAY()) &&
CALCULATE(
max(Table1[Date]),
ALLEXCEPT(table1,Table1[id])
) = Table1[Date]
)
@req7
Cree una tabla de la siguiente manera:
FILTER(
Table1,
year(Table1[Date]) = year(TODAY()) &&
CALCULATE(
max(Table1[Date]),
ALLEXCEPT(table1,Table1[id])
) = Table1[Date]
)
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.