Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Estoy tratando de mostrar solo el top 10 en la tabla y he estado mirando hacia arriba para intentar usar TOPN y RANKX.
Pero he estado teniendo problemas con rankx, con él mostrando 1 rango en toda la tabla.
Se espera que la tabla se filtre por tres criterios,
1. main_service
2. dirección
3. customer_segment
He intentado agregar columnas y me da los rangos a lo largo de toda la tabla. Pero estoy buscando un ranking dinámico donde se clasificará a medida que se aplique el filtro.
rank = RANKX(ALLSELECTED(summary_table), [total_teus],,0)
rank está usando una nueva columna con el código anterior, mientras que las clasificaciones, he estado probando con el código a continuación.
rankings = CALCULATE(
RANKX(ALLSELECTED(summary_table[od_pairs]), SUM([total_teus]),,0))
Solved! Go to Solution.
@jeanL , Prueba TOPN como
CALCULATE([total_teus], TOPN(10,ALLSELECTED(summary_table[od_pairs]),[total_teus],dense), ALLSELECTED(summary_table[od_pairs]))
rankings =
RANKX(
ALLSELECTED( summary_table[od_pairs] ),
CALCULATE( SUM( [total_teus] ) )
)
rankings =
RANKX(
ALLSELECTED( summary_table[od_pairs] ),
CALCULATE( SUM( [total_teus] ) )
)
@jeanL , Prueba TOPN como
CALCULATE([total_teus], TOPN(10,ALLSELECTED(summary_table[od_pairs]),[total_teus],dense), ALLSELECTED(summary_table[od_pairs]))