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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
L_B
Frequent Visitor

Línea de referencia (vertical) a una fecha específica

Hola a todos

Quiero insertar una línea de referencia vertical a una fecha específica (por ejemplo, covid-19 comienzo) en un gráfico de líneas.

He visto una opción por la que literalmente podría dibujar una línea de este tipo, pero esta no es la solución que estoy buscando.

¿Alguien conoce una solución?

Gracias

L_B

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hola @L_B ,

Tengo una muestra similar al respecto. En realidad, la línea vertical de mi muestra es una columna del gráfico de columnas Line y stack/clustered. Se aten la fecha mínima en mi muestra. Podrías volver a intentarlo. Espero que pueda darte algunas ideas.

Measure = 
var mindate = MINX(ALL('Table'),'Table'[Date])
return
IF(SELECTEDVALUE('Table'[Date]) = mindate,1)

v-xuding-msft_0-1598518221964.png

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Impresionante video de youtube con algo de codificación. Es una solución alternativa, pero debería funcionar muy bien en un gráfico de líneas.

https://www.youtube.com/watch?v=XKmTknbusnY

v-xuding-msft
Community Support
Community Support

Hola @L_B ,

Tengo una muestra similar al respecto. En realidad, la línea vertical de mi muestra es una columna del gráfico de columnas Line y stack/clustered. Se aten la fecha mínima en mi muestra. Podrías volver a intentarlo. Espero que pueda darte algunas ideas.

Measure = 
var mindate = MINX(ALL('Table'),'Table'[Date])
return
IF(SELECTEDVALUE('Table'[Date]) = mindate,1)

v-xuding-msft_0-1598518221964.png

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@L_B, no puedes tener como. pero en visual combinado, se puede barra. asegúrese de que sea nulo en todas las demás fechas.

No hay mismo ejemplo, pero buena idea

https://community.powerbi.com/t5/Community-Blog/Display-Label-Only-on-the-Last-Data-Point-of-the-Lin...

Greg_Deckler
Super User
Super User

@L_B - Nunca he visto una solución "automática" para esto.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors