cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ashamsuzzoha
Helper II
Helper II

Ayuda con rankx(); Lazos no entiendo el origen de

Hola, estoy tratando de ejecutar la siguiente medida de rankx simple en un objeto visual de tabla.

Undergrounding Priority Rank = 

RANKX(
    ALL('tablename'),
    CALCULATE([Undergrounding Priority Score]),
    ,
    ASC
)

Pero colocar la medida en la tabla conduce a lazos desde los que no puedo imaginar el origen, como se muestra a continuación.

rankx screenshot.png

¿Puede alguien ayudarme? Gracias.

2 ACCEPTED SOLUTIONS
amitchandak
Super User IV
Super User IV

@ashamsuzzoha ,

Inténtalo como, si esto puede funcionar

Undergrounding Priority Rank = 

RANKX(
    ALL('tablename'[Feeder]),
    CALCULATE([Undergrounding Priority Score]),
    ,
    ASC
)

Para rango Referido: https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

AiolosZhao
Memorable Member
Memorable Member

Hola @ashamsuzzoha ,

Por favor, intente utilizar la siguiente medida. Funciona en mi escritorio:

Measure 15 = RANKX(ALL('Table (4)'[Feeder]),[Your Measure],,ASC)

Aiolos Zhao





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
AiolosZhao
Memorable Member
Memorable Member

Hola @ashamsuzzoha ,

Por favor, intente utilizar la siguiente medida. Funciona en mi escritorio:

Measure 15 = RANKX(ALL('Table (4)'[Feeder]),[Your Measure],,ASC)

Aiolos Zhao





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

amitchandak
Super User IV
Super User IV

@ashamsuzzoha ,

Inténtalo como, si esto puede funcionar

Undergrounding Priority Rank = 

RANKX(
    ALL('tablename'[Feeder]),
    CALCULATE([Undergrounding Priority Score]),
    ,
    ASC
)

Para rango Referido: https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

@AiolosZhao @amitchandak Gracias, pero eso no parece haber ayudado.

Ahora todos los rangos son 1.

Screenshot 2020-09-14 230111.png

Hola @ashamsuzzoha ,

1. ¿Es Feeder una columna normal?

2. ¿Podría mostrarme la medida de la puntuación prioritaria de subterráneo?

3. Si estas columnas no están en una tabla, ¿podría mostrarme el modelo de datos?

Gracias.

Aiolos Zhao





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@AiolosZhao @amitchandak

La medida Puntuación prioritaria es una ponderación de las medidas de rango individuales en las columnas de mi tabla, de la siguiente manera:

Undergrounding Priority Score = 

[rank_column A] * weight A + 
[rank_column B] * weight B + 
[rank_column C] * weight C + 
[rank_column D] * weight D + 
[rank_column E] * weight E + 
[rank_column F] * weight F + 
[rank_column G] * weight G

where the sum of weights is 1

así que tuve que corregir las medidas de rango individuales con el código que sugieres, y funcionó.Screenshot 2020-09-15 153537.png

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.