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.
Hola a todos
Tengo los datos por debajo y quiero calcualte Rank
Categoría raíz | Categoría | IDENTIFICACIÓN |
A | Gato | 3 |
León | 1 | |
Cerdo | 4 | |
Rata | 2 | |
Tigre | 5 | |
B | Gato | 6 |
León | 9 | |
Cerdo | 3 | |
Rata | 4 | |
Tigre | 1 |
Desea crear una columna de rango basada en la categoría raíz y la columna de categoría como se muestra a continuación
Categoría raíz | Categoría | IDENTIFICACIÓN | Rango |
A | Gato | 3 | 3 |
León | 1 | 5 | |
Cerdo | 4 | 2 | |
Rata | 2 | 4 | |
Tigre | 5 | 1 | |
B | Gato | 6 | 2 |
León | 9 | 1 | |
Cerdo | 3 | 4 | |
Rata | 4 | 3 | |
Tigre | 1 | 5 |
Solved! Go to Solution.
Compruebe la fórmula.
Column = RANKX(FILTER('Table','Table'[Root Category]=EARLIER('Table'[Root Category])),'Table'[ID],,DESC)
Si desea agregar otros grupos, simplemente agregue [columna] = anterior([columna]) a la parte de filtro de la fórmula.
Saludos
Arrendajo
@suren947 , Pruebe una nueva columna
rankx(filter(Table,[Root Category] = anterior([Root Category])),[ID],,desc, dense)
Gracias, pero la expresión no funciona