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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
jrtril
Regular Visitor

Barras aplicadas - porcentaje

Nuevo en POWER_BI.

Estoy haciendo un grafico de tablas apiladas para sacar Tipos de vehículo / porcentaje. los datos que tengo son

Tabla1  [POLIZA]

Tabla 1 [Tipo vehiculo]

Estoy tratando de hacer una medida anidando funciones Average y count para sacar el porcentaje pero no doy con ello ¿Me puedes ayudar?

 

jrtril_0-1611508833166.png

 

 

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

No @Syndicate_Admin ,

Podrías intentar:

measure = calculate(count('table'[poliza]),allexcept('table','table'[type]))/CALCULATE(COUNTROWS('Table'),ALL('Table'))


Saludos

Jay

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

No @Syndicate_Admin ,

Podrías intentar:

measure = calculate(count('table'[poliza]),allexcept('table','table'[type]))/CALCULATE(COUNTROWS('Table'),ALL('Table'))


Saludos

Jay

jrtril
Regular Visitor

jrtril_0-1611515196677.pngjrtril_1-1611515231935.png

Por favor, ¿sabes como puedo hacer para sacar en las barras apiladas el porcentaje de polizas para cada tipo de vehículo. Aquí:

 

jrtril_2-1611516030278.png

 

Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin puede poner algunos datos de ejemplo y la salida esperada. Lee este post para obtener tu respuesta rápidamente.

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors