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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Fecha MAX para cada id repetitivo

eh

Mi tabla sigue esta estructura:

identificaciónfechaestado
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ónfechaestado
1 14/02/2021 error
2 30/05/2021 De acuerdo
3 22/04/2021 De acuerdo

¿Cómo puedo hacer esto?

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@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]
	
)

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@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]
	
)

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors