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
rossybink
Regular Visitor

2 Categorías - Necesidad de mostrar 1 porcentaje del total

Hola a todos, esto me está volviendo loco, así que si alguien pudiera ayudarme estaría inmensamente agradecido.

Tengo un gráfico de barras apiladas que muestra una lista de países y el porcentaje entre 2 resultados.

Así que en la primera barra, necesito mostrar estados unidos como 5% (que digamos que se llama test.com) y ocultar el 95% restante (nottest.com).

¿Hay una manera fácil de hacer esto?

Screenshot 2020-11-09 193842.png

2 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@rossybink

Cree una medida y utilí y utilítela en el gráfico.

Medida:Dividir( Caculate ( Tabla[Cantidad] , Tabla[Sitio] ? "test.com") , Caculate ( Table[Amount] , ALL(Table[Site]))

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

@rossybink

Por favor, pruebe la siguiente medida. Si desea tener una agregación diferente dentro de calcular, puede cambiar en consecuencia.

Measure =
Divide( 
    Calculate ( COUNTROWS(Query1) , Query1[Domain] = "test.com") , 
    Calculate ( COUNTROWS(Query1)  , ALL(Query1[Domain])
)

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
rossybink
Regular Visitor

@Fowmy - Gracias de nuevo por esto, pero debo estar haciendo algo mal como im conseguir errores.

La tabla se denomina "Query1" y el Importe para el recuento es "Dominio", también sitio.

Una vez más, gracias por su consejo y ayuda.

Medir á Divide( Calcular ( Query1[Dominio] , Query1[Dominio] á "test.com") , Calcular ( Query1[Dominio] , ALL(Query1[Dominio]))

powerbi1.png

@rossybink

Por favor, pruebe la siguiente medida. Si desea tener una agregación diferente dentro de calcular, puede cambiar en consecuencia.

Measure =
Divide( 
    Calculate ( COUNTROWS(Query1) , Query1[Domain] = "test.com") , 
    Calculate ( COUNTROWS(Query1)  , ALL(Query1[Domain])
)

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

rossybink
Regular Visitor

@Fowmy Muchas gracias, voy a dar este ir y feeback, muy apreciado.

Fowmy
Super User
Super User

@rossybink

Cree una medida y utilí y utilítela en el gráfico.

Medida:Dividir( Caculate ( Tabla[Cantidad] , Tabla[Sitio] ? "test.com") , Caculate ( Table[Amount] , ALL(Table[Site]))

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.