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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
jrobles
Regular Visitor

añadir correlativo numérico

hola, necesito agregar una nueva columna con recuento de ejecución, basado en columnas existentes. ¿Cómo puedo generar la columna ID?

FormatoPRODUCTO Id
A892484 1
A895524 2
A1057696 1
A1057696 2
A1057696 3
A1057698 1
B1049710 1
B1049710 2
B1047274 1
B1047274 2
B1047274 3

Necesito agregar un identificador único en cada valor repetido

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hola

La respuesta en la segunda fila debe ser 1. Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
jrobles
Regular Visitor

gracias, son los mejores

gracias, son los mejores, los mas pulentos

Ashish_Mathur
Super User
Super User

Hola

La respuesta en la segunda fila debe ser 1. Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hola, y cómo se podría hacer el índice correlativo (1, 2, 3 , ...) pero con DAX? no con Power Query?

amitchandak
Super User
Super User

@jrobles , En primer lugar, agregue una columna de índice en la consulta de energía y, a continuación, pruebe esto como una nueva columna en DAX -https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

countx(filter(Table, [FORMATO] á earlier([FORMATO]) && [PRODUCTO] ? earlier([PRODUCTO]) && [Index] <-earlier([Index]) ),[Index])

AllisonKennedy
Super User
Super User

@jrobles ¿Es esto lo que estás buscando? https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors