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
pva
Frequent Visitor

RANKING

Hola a todos!

 

Tengo una tabla como esta y necesito hacer un ranking como se muestra en la última columna ("Resultado"). ¿Cómo podría hacerlo?

 

CanalTV ShowHoras de retransmisiónResutado (valor buscado)
BBCLos Simpsons201
TV1Los Simpsons152
MTVLos Simpsons123
BBCJuego de tronos153
TV1Juego de tronos301
MTVJuego de tronos222

 

Muchas gracias!

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @pva ,

You can create a measure as follows if you want the rankings to be dynamically displayed according to the slicer's options or filters...

Measure =
RANKX (
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[TV Show] = SELECTEDVALUE ( 'Table'[TV Show] )
    ),
    CALCULATE ( SUM ( 'Table'[Horas de retransmisión] ) ),
    ,
    DESC,
    DENSE
)

yingyinr_0-1648108551775.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @pva ,

You can create a measure as follows if you want the rankings to be dynamically displayed according to the slicer's options or filters...

Measure =
RANKX (
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[TV Show] = SELECTEDVALUE ( 'Table'[TV Show] )
    ),
    CALCULATE ( SUM ( 'Table'[Horas de retransmisión] ) ),
    ,
    DESC,
    DENSE
)

yingyinr_0-1648108551775.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ryan_mayu
Super User
Super User

@pva 

is this what you want?

Column = rankx(FILTER('Table','Table'[TV Show]=EARLIER('Table'[TV Show])),'Table'[Horas de retransmisión],,DESC)

1.PNG





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

Proud to be a Super User!




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.