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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Sid10
Helper I
Helper I

Cálculo del percentil mediante rango y recuento

Sabemos que Percentile - Rank/(n+1), donde n es el número de valores para los que se calculan los percentiles.

Esto ha funcionado bien para mí en powerbi cuando los valores son distintos. Sin embargo, si dos o más valores son similares entonces el rango y el percentil falla como se muestra en la tabla abajo llamada CQM. Por ejemplo, hay muchas filas con una puntuación % del 0% y 14,29%. Esto hace que el cálculo del percentil se equivoque (obviamente los percentiles no pueden superar el 100% como se muestra en la tabla siguiente).

¿Hay alguna solución sugerida para esto? Agradecemos su ayuda. Gracias.

Más detalles para referencia:

La fórmula para rango y percentil son como se muestra:
LowBirthWt_Rank - IF(ISBLANK([LowBirthWt%_m]), BLANK(), RANKX(ALL(CQM), CALCULATE(SUMX(CQM, [LowBirthWt%_m])), ,ASC, Skip))
LowBirthWt_%ile á DIVIDE([LowBirthWt_Rank], COUNTX(ALL(CQM), CQM[LowBirthWt%_m])+1)

Vea a continuación:

Sid10_0-1602889170025.png

Solicitando @Tahreem24 o cualquier otra persona, por favor.

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @Sid10 ,

probar esto.

LowBirthWt_%ile = DIVIDE([LowBirthWt_Rank], COUNTX(ALL(CQM), CQM[GrantNumber]))

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

3 REPLIES 3
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @Sid10 ,

probar esto.

LowBirthWt_%ile = DIVIDE([LowBirthWt_Rank], COUNTX(ALL(CQM), CQM[GrantNumber]))

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


¡Wow! ¡Eso fue todo! Muchas gracias.

Sólo una pequeña corrección. Su fórmula debe ser:

LowBirthWt_%ile = DIVIDE([LowBirthWt_Rank],COUNTX(ALL(CQM),CQM[GrantNumber])+1)

Lamento @Sid10 sólo tengo tiempo para ver tu puesto.

It's excelente @mwegener ya ha resuelto su problema.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.