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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.