The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hola a todos.
Tengo una tabla como esta:
ID - Máquina | Fase | Medir | Valor |
86081 - 17 09 01 | CCW CUE | PAR | 14,02000046 |
86081 - 17 09 01 | CCW CUE | ACTUAL | 1,409999967 |
86081 - 17 09 01 | CCW CUE | ACTUAL | 1,549999952 |
86081 - 17 09 01 | CCW CUE | VELOCIDAD | 2,059999943 |
86081 - 17 09 01 | CCW CUE | VELOCIDAD | 8,5 |
86081 - 17 09 01 | CW CUE | ACTUAL | 13,43000031 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 1,480000019 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 1,429999948 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 3,730000019 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 23,23999977 |
86082 - 17 09 01 | CCW CUE | PAR | 12,31999969 |
86082 - 17 09 01 | CCW CUE | ACTUAL | 1,440000057 |
86082 - 17 09 01 | CCW CUE | ACTUAL | 1,330000043 |
86082 - 17 09 01 | CCW CUE | VELOCIDAD | 6,619999886 |
86082 - 17 09 01 | CCW CUE | VELOCIDAD | 59,13000107 |
86082 - 17 09 01 | CW CUE | PAR | 13,55000019 |
86082 - 17 09 01 | CW CUE | PAR | 1,370000005 |
86082 - 17 09 01 | CW CUE | ACTUAL | 1,399999976 |
86082 - 17 09 01 | CW CUE | ACTUAL | 2,220000029 |
86082 - 17 09 01 | CW CUE | ACTUAL | 9,359999657 |
que contiene los datos registrados por una máquina de prueba.
Cada registro se identifica mediante un ID (ID de columna - Máquina). Para cada fase (SPUNTO CW, SPUNTO CCW) hay mediciones que se pueden repetir (COPPIA, CORRENTE, VELOCITA'...).
Mi intención es asignar un número progresivo a las mediciones, agrupándolas por fase y por ID de máquina. Este es el resultado ideal:
ID - Máquina | Fase | Medir | Valor | Índice |
86081 - 17 09 01 | CCW CUE | PAR | 14,02000046 | 1 |
86081 - 17 09 01 | CCW CUE | ACTUAL | 1,409999967 | 1 |
86081 - 17 09 01 | CCW CUE | ACTUAL | 1,549999952 | 2 |
86081 - 17 09 01 | CCW CUE | VELOCIDAD | 2,059999943 | 1 |
86081 - 17 09 01 | CCW CUE | VELOCIDAD | 8,5 | 2 |
86081 - 17 09 01 | CW CUE | ACTUAL | 13,43000031 | 1 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 1,480000019 | 1 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 1,429999948 | 2 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 3,730000019 | 3 |
86081 - 17 09 01 | CW CUE | VELOCIDAD | 23,23999977 | 4 |
86082 - 17 09 01 | CCW CUE | PAR | 12,31999969 | 1 |
86082 - 17 09 01 | CCW CUE | ACTUAL | 1,440000057 | 1 |
86082 - 17 09 01 | CCW CUE | ACTUAL | 1,330000043 | 2 |
86082 - 17 09 01 | CCW CUE | VELOCIDAD | 6,619999886 | 1 |
86082 - 17 09 01 | CCW CUE | VELOCIDAD | 59,13000107 | 2 |
86082 - 17 09 01 | CW CUE | PAR | 13,55000019 | 1 |
86082 - 17 09 01 | CW CUE | PAR | 1,370000005 | 2 |
86082 - 17 09 01 | CW CUE | ACTUAL | 1,399999976 | 1 |
86082 - 17 09 01 | CW CUE | ACTUAL | 2,220000029 | 2 |
86082 - 17 09 01 | CW CUE | ACTUAL | 9,359999657 | 3 |
¿Puede ayudarme con la fórmula DAX que se insertará en la columna Índice?
¡Gracias de antemano!
este es el archivo de Excel que utilicé como fuente de datos: https://www.dropbox.com/scl/fi/203wfw7qxyuq2gmgmyo5o/Machine.xlsx?dl=0&rlkey=ti5bj3w2a3lj4u1p6ygmjfn...