hola, necesito agregar una nueva columna con recuento de ejecución, basado en columnas existentes. ¿Cómo puedo generar la columna ID?
Formato | PRODUCTO | Id | |
A | 892484 | 1 | |
A | 895524 | 2 | |
A | 1057696 | 1 | |
A | 1057696 | 2 | |
A | 1057696 | 3 | |
A | 1057698 | 1 | |
B | 1049710 | 1 | |
B | 1049710 | 2 | |
B | 1047274 | 1 | |
B | 1047274 | 2 | |
B | 1047274 | 3 |
Necesito agregar un identificador único en cada valor repetido
Solved! Go to Solution.
Hola
La respuesta en la segunda fila debe ser 1. Puede descargar mi archivo PBI desde aquí.
Espero que esto ayude.
gracias, son los mejores
gracias, son los mejores, los mas pulentos
Hola
La respuesta en la segunda fila debe ser 1. Puede descargar mi archivo PBI desde aquí.
Espero que esto ayude.
@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])
@jrobles ¿Es esto lo que estás buscando? https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query
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
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.
Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!