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
Syndicate_Admin
Administrator
Administrator

Dividir los valores de una columna por el total de una columna diferente

Me gustaría agregar columnas que tomen diferentes subtotales para una ubicación y dividan por el total de esa ubicación en el formato de porcentaje. Ver imágenes para el conjunto de datos y el ejemplo

simteron_0-1679706575677.png

simteron_1-1679706614378.png

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Intente crear una nueva medida con:

Percentage = 

DIVIDE(
       CALCULATE(COUNT('BAML Checks'[Location]),
                 ALLEXCEPT('BAML Checks','BAML Checks'[Location],'BAML Checks'[Age Bucket]),
       CALCULATE(COUNT('BAML Checks'[Location]),
                 ALLEXCEPT('BAML Checks','BAML Checks'[Location]),
0)

No creo que haya una manera de ocultar el % total en una tabla de matriz sin ocultar el recuento total, por lo que terminará con un % total de 100% para cada fila. Si eso es un problema, es posible que deba compilarlo utilizando un objeto visual de tabla estándar con medidas para cada columna.

Syndicate_Admin
Administrator
Administrator

@simteron , para eso debe agregar una fila adicional a su dimensión o usar una dimensión extendida

Compruebe cómo se agregaron los totales personalizados aquí

Power BI Cómo obtener el formato de P&L correcto: https://youtu.be/C9K8uVfthUU

https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e...

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.