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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
joshua1990
Post Prodigy
Post Prodigy

Reglas de formato condicional para leyenda en un gráfico de barras

¡Hola a todos!

Me gustaría que dos mostrara nuestras ventas para cada artículo en un gráfico de barras.

Aquí me gustaría diferenciar los colores de las barras individuales.
Esto significa que los elementos del área "A" son azules, los elementos del área "B" son amarillos, etc.

La relación Artículo - Área se coloca en nuestro maestro de artículos

¿Hay alguna posibilidad de agregar esta característica a un gráfico de barras?

1 REPLY 1
parry2k
Super User
Super User

@joshua1990 añadir una nueva medida para el color

Bar Color = IF ( MAX ( 'Item'[Area] ) = "A" , "Blue", "Yellow" )

ir a formatear pintor, haga clic en fx al lado del color de los datos

parry2k_0-1594845098715.png

en formato condicional elegir su medida

parry2k_1-1594845146680.png

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors