Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Asignar valor a cada ocurrencia

Hola a todos.

Tengo una tabla como esta:

ID - MáquinaFaseMedirValor
86081 - 17 09 01CCW CUEPAR14,02000046
86081 - 17 09 01CCW CUEACTUAL1,409999967
86081 - 17 09 01CCW CUEACTUAL1,549999952
86081 - 17 09 01CCW CUEVELOCIDAD2,059999943
86081 - 17 09 01CCW CUEVELOCIDAD8,5
86081 - 17 09 01CW CUEACTUAL13,43000031
86081 - 17 09 01CW CUEVELOCIDAD1,480000019
86081 - 17 09 01CW CUEVELOCIDAD1,429999948
86081 - 17 09 01CW CUEVELOCIDAD3,730000019
86081 - 17 09 01CW CUEVELOCIDAD23,23999977
86082 - 17 09 01CCW CUEPAR12,31999969
86082 - 17 09 01CCW CUEACTUAL1,440000057
86082 - 17 09 01CCW CUEACTUAL1,330000043
86082 - 17 09 01CCW CUEVELOCIDAD6,619999886
86082 - 17 09 01CCW CUEVELOCIDAD59,13000107
86082 - 17 09 01CW CUEPAR13,55000019
86082 - 17 09 01CW CUEPAR1,370000005
86082 - 17 09 01CW CUEACTUAL1,399999976
86082 - 17 09 01CW CUEACTUAL2,220000029
86082 - 17 09 01CW CUEACTUAL9,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áquinaFaseMedirValorÍndice
86081 - 17 09 01CCW CUEPAR14,020000461
86081 - 17 09 01CCW CUEACTUAL1,4099999671
86081 - 17 09 01CCW CUEACTUAL1,5499999522
86081 - 17 09 01CCW CUEVELOCIDAD2,0599999431
86081 - 17 09 01CCW CUEVELOCIDAD8,52
86081 - 17 09 01CW CUEACTUAL13,430000311
86081 - 17 09 01CW CUEVELOCIDAD1,4800000191
86081 - 17 09 01CW CUEVELOCIDAD1,4299999482
86081 - 17 09 01CW CUEVELOCIDAD3,7300000193
86081 - 17 09 01CW CUEVELOCIDAD23,239999774
86082 - 17 09 01CCW CUEPAR12,319999691
86082 - 17 09 01CCW CUEACTUAL1,4400000571
86082 - 17 09 01CCW CUEACTUAL1,3300000432
86082 - 17 09 01CCW CUEVELOCIDAD6,6199998861
86082 - 17 09 01CCW CUEVELOCIDAD59,130001072
86082 - 17 09 01CW CUEPAR13,550000191
86082 - 17 09 01CW CUEPAR1,3700000052
86082 - 17 09 01CW CUEACTUAL1,3999999761
86082 - 17 09 01CW CUEACTUAL2,2200000292
86082 - 17 09 01CW CUEACTUAL9,3599996573

¿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...

0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors