cancel
Showing results for 
Search instead for 
Did you mean: 
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

4 REPLIES 4
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/
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])

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!
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.

Check out my Olympics report with live stats - KUDOS much appreciated

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
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors