Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hola equipo,
cómo obtener el número de índice como este en la columna calculada usando DAX.
No necesito la solución Power Query, RANKX también.
El orden de la alta costura debería cambiar
| País | Índice |
| Canadá | 1 |
| Francia | 2 |
| Alemania | 3 |
| Estados Unidos | 4 |
| Bermudas | 5 |
Puede crear una tabla calculada.
DAX Indexed Table =
VAR __SourceTable = 'Table'
VAR __Count = COUNTROWS(__SourceTable)
VAR __SortText = CONCATENATEX(__SourceTable,[Country],"|")
VAR __Table =
ADDCOLUMNS(
GENERATESERIES(1,__Count,1),
"Country",PATHITEM(__SortText,[Value],TEXT)
)
RETURN
__Table
Referencia:
El mítico índice DAX - Comunidad de Microsoft Power BI
Saludos
Esteban Tao
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.