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
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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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...

Gracias.. pero no funcionó.

Tengo 1s a través de filas

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.