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
Raulx_7
Helper I
Helper I

Crear una nueva tabla con la fecha actual

Hola, estoy haciendo un panel, sin embargo, este panel tiene un filtro de fecha (como 7 fechas), y quiero mostrar solo la fecha más reciente seleccionada. Es por eso que decidí crear una nueva tabla que contiene el valor de sólo la fecha seleccionada, con el fin de usarlo como filtro para muchos gráficos, ¿es esto posible?

He intentado usar Max(Dates[date]), y SELECTEDVALUE, pero nada funciona .

3 REPLIES 3
amitchandak
Super User
Super User

@Raulx_7 , Tabla de fechas máxima dependiente del calendario

Inténtalo como

Nueva tabla ??

Var _max á maxx(Tabla, Tabla[Fecha])

devolución

calculatetable(Tabla, filtro(Tabla, Tabla[Fecha] - _max ))

Incluso se puede tratar de medir como

Nueva medida

Var _max á maxx(Tabla, Tabla[Fecha])

devolución

calculate([Measure], filter(Table, Table[Date] á _max ))

Gracias, he probado este :

Nueva tabla ??

Var _max á maxx(Tabla, Tabla[Fecha])

devolución

calculatetable(Tabla, filtro(Tabla, Tabla[Fecha] - _max ))

Pero dice que la sintaxis de una tabla no es correcta.

Hola @Raulx_7 ,

Prueba esta fórmula.

new table = DISTINCT(SELECTCOLUMNS('Table',"latest date",MAX('Table'[date])))

El resultado se mostraría como se muestra a continuación.

1.PNG

2.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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.