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
Anonymous
Not applicable

Cambiar el color del punto de datos cuando se superpone (gráfico de líneas)

Hola a todos

Tengo un gráfico de líneas que está siendo creado por varias medidas para mostrar los puntos de datos (puntos) en la línea. Así es como se crea en PBIX. Convertí las líneas (A, B, C, D, E) en puntos y Total permanece como la línea azul en el gráfico. Sin embargo, hay algunos puntos de datos donde varios puntos de datos (puntos - A, B, C, D, E) se superponen entre sí en la línea azul (Total). Me gustaría saber si hay una manera de cambiar el color del punto a Negro cuando hay una superposición en los datos (consulte la segunda captura de pantalla a continuación).

Gráfico actual

beekee_1-1598463424062.png

Puntos de datos superpuestos (quiere cambiar el color del punto a negro)

beekee_0-1598463145203.png

saludos

Bk

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

Hola @beekee

Que yo sepa, su requisito no pudo lograr para el gráfico de líneas en power bi por ahora.

saludos

Lin

Community Support Team _ Lin
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

@beekee, dudo que sea posible. como el formato condicional no se permite con varios valores en el objeto visual de línea/barra. Compruebe si funciona. Cree una medida de color siempre que dos valores coincidan. Utilícelo en formato condicional mediante la opción "Valor de campo" en la barra primero y, a continuación, cambie visual a línea.

ejemplo de medida

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK(Table[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))

Color  = if(FIRSTNONBLANK(Table[Year],2014) <=2016 && AVERAGE(Sales[Sales Amount])<170 
,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))
Color sales = if([Sales Today] -[sales yesterday]>0,"green","red")

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Anonymous
Not applicable

Hola @amitchandak

No estoy muy seguro de lo que quieres decir. ¿Puedes mostrar en PBIX?

Gracias y saludos,

Bk

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.