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

Suma de valores de la misma columna

Hola Equipo,

¿Puede alguien ayudarme a lograr el siguiente resultado en Table Matrix Visual. Si habilito el sub total de la columna está contando los valores únicos que no se esperan y la expectativa es si hago clic en cualquier valor de la matriz de tabla incluyendo el total, los otros gráficos deben cambiar en consecuencia y esto no está sucediendo con las medidas. Nota: Tengo A y B de la misma columna llamada "Servicios" y los valores de la matriz son el recuento único de nombres de equipo.

RegiónAB A+B
Andina101121
Nos257
Brasil279

También hay alguna manera donde puedo tener calendario en lugar de la lista desplegable que cambia estos valores en función de la selección de fecha.

Date.PNG

7 REPLIES 7
parry2k
Super User
Super User

@Dsingh puede compartir datos de ejemplo y resultados esperados. Lea este post para obtener su respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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.

Hola

Gracias por su respuesta.

Consulte los datos de muestra

Nombre del ordenadorServiciosRegión
xANos
yBBrasil
zBAndina
xABrasil
yABrasil

Resultado esperado

RegiónAB A+B
Andina011
Nos101
Brasil213

@Dsingh probar esto en la matriz visual

image.png

y la medida sería simple expresión dax

Measure = COUNTROWS( Table )

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.

Hola

Gracias por la ayuda! Finalmente funcionó.

Total : COUNTROWS(DISTINCT(table)) - Se utiliza Distinct there were duplicate computer names.
result.PNG
Una última cosa: ¿Cómo relleno los espacios en blanco con 0 en la matriz de tabla. Agregar +0 a la medida Total no funciona.
¡Gracias!

Hola

Esto es lo que tengo. Total sigue sin ser la suma de las columnas Software Not Installed(a) y Service Not Running(b). Si no utilizo distinto en la medida, los valores de las 2 columnas a y b no son precisos.

result.PNG

@Dsinghpor qué está utilizando distinct?



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.

Greg_Deckler
Super User
Super User

Esto parece un problema de totales de medida. Muy común. Vea mi post al respecto aquí: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Además, esta medida rápida, medida totales, la palabra final debe obtener lo que necesita:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907


@ 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