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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
elaj
Helper IV
Helper IV

Insertar barra total fuera de barras específicas en el gráfico de barras apiladas

Hola, gracias por la ayuda hasta ahora.

Tengo otra pregunta. No encuentro respuestas.

Quiero mostrar un gráfico de barras apiladas donde las marcas están en el eje X. el eje Y se descuenta de la suma de las acciones de las categorías de respuesta.

Así:

2020-05-12_14-15-32.png

ahora quiero, por ejemplo, una barra total adicional de Brand_1 y Brand_2, que entonces tendría los valores de:

Satisfecho55
no satisfecho49
menos satisfecho36
muy satisfecho45

¿Es posible?

Mis datos de origen se ven así:

IdBrand_1Brand_2Brand_3
1 muy satisfechono satisfecho
2 no satisfecho
3muy satisfechono satisfechoSatisfecho
4no satisfecho no satisfecho
5no satisfechoSatisfecho
6Satisfechomuy satisfecho
7Satisfecho Satisfecho

y yo sin pivotar primero:

IdMarcasValor
1Brand_1
1Brand_2muy satisfecho
1Brand_3no satisfecho
2Brand_1
2Brand_2no satisfecho
2Brand_3
3Brand_1muy satisfecho
3Brand_2no satisfecho
3Brand_3Satisfecho
4Brand_1no satisfecho
4Brand_2
4Brand_3no satisfecho
5Brand_1no satisfecho
5Brand_2Satisfecho
5Brand_3
6Brand_1Satisfecho
6Brand_2muy satisfecho
6Brand_3
7Brand_1Satisfecho
7Brand_2
7Brand_3Satisfecho

para que pueda tener las marcas en un eje.

Lo único que descubrí.fue crear un grupo. pero entonces sólo podía ver los grupos y no las marcas individuales más.

Gracias por ayudar 🙂

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hola

Si es amado, ¿podría aceptarlo amablemente como una solución para cerrar este caso y ayudar a los otros miembros a encontrarlo más rápidamente?
Si no, por favor no dude en hacestarme lo saber.
Saludos
Maggie

Siento que sea demasiado complicado. la primera respuesta no funciona con cadenas en las columnas... como mi ejemplo es... y la segunda solución que tampoco entiendo... si, por ejemplo, sólo intento introducir estas líneas en una medida:

Medida ?
VAR __BrandCategory á MAX('mynewtable'[Marcas])

Obtengo el error: sintaxis incorrecta para ")"

Soy un novato total y necesito algo más específico.

Greg_Deckler
Super User
Super User

Claro, crea una mesa desconectada con las marcas y tu combinación extra. Cree una medida en la línea de:

Medida ?

VAR __BrandCategory á MAX('DisconnectedTable'[Category])

SWITCH(TRUE(),

__BrandCategory de la letra "Combo",CALCULATE([Measure],'Fact'[Brand] ? "Brand1") + CALCULATE([Measure],'Fact'[Brand] ? "Brand2"),

CALCULATE([Medida],'Hecho'[Marca] - __BrandCategory

)


@ 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...
parry2k
Super User
Super User

@elaj ver la solución adjunta, puede ajustarla según sus necesidades.

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



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
March Fabric Community Update

Fabric Community Update - March 2024

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors