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

Gráfico de tabla - Porcentaje del valor total

Hola tengo una tabla que me gustaría hacer lo siguiente: counta(numObjects) dividido por counta (todos los objetos. mi tabla se parece a esta Banda numObjects %
un 10 10%
b 20 20%
c 70 70%
total de 100 100%
Hice una solución al calcular el max numObjects/Total (pero luego el 100% se muestra como 70% porque está obteniendo el valor máximo.
¿Enloquecer 🙂

Ya

también responderá aparece en mi bandeja de entrada o tengo que volver a esta página para obtener la respuesta?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hola trabajé alrededor de tu fórmula:

Esto funcionó 🙂

Porcentaje GT - DIVIDE (COUNTA (Sheet1 [Sheet1 [ProjUserFormID]), CALCULATE (COUNTA (' Sheet1 ' [ProjUserFormID]), ALLSELECTED (' Sheet1 ' [HRECBAND1])))

Gracias

Ya

View solution in original post

4 REPLIES 4
AllisonKennedy
Super User
Super User

Ps
La respuesta debe aparecer en tu bandeja de entrada para cualquier hilo al que te suscribas. Debe estar automáticamente suscrito a los subprocesos que publique. Sólo tiene que volver al Foro de la Comunidad para hacernos saber si realmente es la solución.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

@jo3edc
Le sugiero que pruebe esto como un MEDIDA calculada:

Porcentaje GT - DIVIDE(COUNTA(table[numObjects]), CALCULATE(COUNTAtable[numObjects]), ALL())

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

Hi
this is what I did to get my values (agree with the pie chart) - Percent GT gives me odd values.
Jo
 
 
Percent3 = divide(Sheet1[Percent2],Sheet1[Percent1])
Percent2 =MAXX(   KEEPFILTERS(VALUES('Sheet1'[HRECBAND1])),   CALCULATE(COUNTA('Sheet1'[ProjUserFormID])))
Percent1 =CALCULATE(  COUNTA('Sheet1'[ProjUserFormID]),   ALLSELECTED('Sheet1'[HRECBAND1]))
 
Percent GT = DIVIDE(COUNTA(Sheet1[ProjUserFormID]), CALCULATE(COUNTA(Sheet1[ProjUserFormID]), ALL()))
 
 
 

Capture1.JPG

 
 
 
Anonymous
Not applicable

Hola trabajé alrededor de tu fórmula:

Esto funcionó 🙂

Porcentaje GT - DIVIDE (COUNTA (Sheet1 [Sheet1 [ProjUserFormID]), CALCULATE (COUNTA (' Sheet1 ' [ProjUserFormID]), ALLSELECTED (' Sheet1 ' [HRECBAND1])))

Gracias

Ya

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.