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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
bhurru
Helper I
Helper I

Rangos Nacionales ,Regionales y Territoriales

¡Saludos amigos!

Mi pregunta podría haber sido hecha previamente en el foro, sin embargo, no pude obtener una solución.

Tengo una medida que se clasifica por región(3 región distinta, 18 distrito distinto y 130 territorio distinto.

Tengo que mostrar 2 rangos

1. Rango cuando no se aplica ningún filtro (es decir, rango para todas las regiones, todo el distrito y todo el territorio)

2. Rango que se ve afectado por los filtros de región, distrito y territorio (cortadores)

A continuación se muestra un recorte de lo que quiero lograr :

bhurru_0-1604060313463.png

Potenciado S2 GA es la medida . Por lo tanto, la columna Rango debe verse afectada por Region, territory y District slicer y Rank Region National y Rank District National deben permanecer iguales y no afectadas por las segmentaciones de región, distrito y territorio.

Ejemplo: Cuando la segmentación de regiones se filtra al noreste, el rango debe ser 1 y la región de rango nacional debe ser 2.

Del mismo modo, el rango en la tabla siguiente debe basarse en los distritos filtrados en región noreste (slicer). Si sólo 1 dostrict entonces 1 de lo contrario rango basado en medida para los distritos filtrados.

Cualquier ayuda es muy apreciada

saludos

3 REPLIES 3
Anonymous
Not applicable

Hola @bhurru,

Me gustaría sugerirle que eche un vistazo al siguiente blog sobre todas las funciones, puede ayudarle a entender estas fórmulas y saber más acerca de cómo funcionan:
Gestión de "todas" funciones en DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT

saludos

Xiaoxin Sheng

amitchandak
Super User
Super User

@bhurru, Meausre Rank es sensible al contexto

para el primero

rankx(All(Table[region]),[meausre])

rankx(Allselected(Table[region]),[meausre])

Para la segunda tabla

rankx(filter(Allselected(Table[region]),Table[district] á max(Table[district])),[meausre])

rankx(filter(All(Table[region]),Table[district] á max(Table[district])),[meausre])

Para rango Consulte estos enlaces
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Gracias.. pero no funcionó.

Tengo 1s a través de filas

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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