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

Cree una columna utilizando el valor más reciente de una tabla

Hola

Cualquier ayuda que pueda dar en esto sería muy apreciado.

Estoy buscando crear una nueva columna en una tabla que mostrará el valor de Nombre más reciente usando la dirección URL. Aquí está mi conjunto de datos actual:

IdTimestampNombreUrl
129/06/2020Página 1http://www.web.com/page1
230/06/2020Página 1.1http://www.web.com/page1
330/06/2020Página 2http://www.web.com/page2
41/07/2020Página 2.1http://www.web.com/page2
52/07/2020Página 2.2http://www.web.com/page2

Me gustaría emitir lo siguiente:

IdTimestampNombreUrlLatestName
129/06/2020Página 1http://www.web.com/page1Página 1.1
230/06/2020Página 1.1http://www.web.com/page1Página 1.1
330/06/2020Página 2http://www.web.com/page2Página 2.2
41/07/2020Página 2.1http://www.web.com/page2Página 2.2
52/07/2020Página 2.2http://www.web.com/page2Página 2.2

La columna LatestName debe buscar las direcciones URL que coincidan y buscar el elemento más reciente y usar ese valor Name. ¿Alguna idea?

4 REPLIES 4
ryan_mayu
Super User
Super User

@joepcf

Por favor, intente

Column = 
MAXX(FILTER('table','table'[URL]=EARLIER('table'[URL])&&'table'[ID]=CALCULATE(MAX('table'[ID]),ALLEXCEPT('table','table'[URL]))),'table'[LatestName])

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Eso funciona muy bien - muchas gracias @ryan_mayu

amitchandak
Super User
Super User

@joepcf , Probar como nuevas columnas

Nombre de la última versión ( LatestName)

if(not(containsstring([name],".")) ,[Name]&".1",[Name])

Hola @amitchandak - gracias por su respuesta.

Los nombres de página bien pueden ser valores aleatorios - "MI página de contenido", "Artículo de noticias ABC", etc. etc. - por lo que necesito utilizar la URL como la clave.

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.