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?
Canal | TV Show | Horas de retransmisión | Resutado (valor buscado) |
BBC | Los Simpsons | 20 | 1 |
TV1 | Los Simpsons | 15 | 2 |
MTV | Los Simpsons | 12 | 3 |
BBC | Juego de tronos | 15 | 3 |
TV1 | Juego de tronos | 30 | 1 |
MTV | Juego de tronos | 22 | 2 |
Muchas gracias!
Solved! Go to Solution.
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
)
Best Regards
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
)
Best Regards
is this what you want?
Column = rankx(FILTER('Table','Table'[TV Show]=EARLIER('Table'[TV Show])),'Table'[Horas de retransmisión],,DESC)
Proud to be a Super User!
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
234 | |
51 | |
48 | |
48 | |
44 |
User | Count |
---|---|
292 | |
241 | |
137 | |
85 | |
69 |