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
aeud83
Regular Visitor

Use column index instead column names / Utilizar el Indice de las columnas en vez del Nombre

English:

----------------------

Good morning everyone...

 

I have a PBIX that takes the information from an CSV excel file, that is updated daily. so far no problem. But sometimes the name of the columns that the document brings me changes (it changes due to the language, sometimes in Spanish and sometimes in English). For Example: one of the columns is called "Number", but sometimes it can be called "Número". This causes that at the time of the refresh, an error is generated indicating that the column "Number" or "Número" (depends on how you placed it last time) is not found...

Can I use a function to automatically rename these columns regardless of the name you get from the .CSV file, not matter if it be Number or Número?

Or some similar solution that does not generate an error when the information is updated, in case the name of the column changes?...

 

Thank you very much!!!

 

Alberto.

-----------------------------------------------------------------

Español:

 

Buenas a todos...

 

Tengo un PBIX que toma la información de un archivo de Excel que se actualiza a diario. hasta aca no hay problema. Pero en ocaciones el nombre de las columnas que me trae el documento cambia (Cambia debido al idioma, unas veces en español y otras en ingles). Por Ejemplo: una de las columnas se llama Número, pero en ocaciones puede llamarse "Number". esto causa que a la hora del refresh, se genere un error indicando que la columna "Número" o "Number" (depende como la haya colocado la ultima vez) no se encuentra...

Se puede utilizar una funcion para renombrar automaticamente estas columnas indiferentemente del nombre que traiga del archivo .CSV, ya sea Número o Number?

O alguna solucion similar que no me genere error cuando se actualiza la informacion, en caso de que el nombre de la columna cambie?...

 

Desde ya muchas gracias!!!

 

Alberto.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi, @aeud83 you can give a reference to the index.

please refer to a linked tutorial from minute 5 +/-.

https://www.youtube.com/watch?v=g4MspcQRHHM

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi, @aeud83 you can give a reference to the index.

please refer to a linked tutorial from minute 5 +/-.

https://www.youtube.com/watch?v=g4MspcQRHHM

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thanks @Ritaf1983 that was the solution!!!

Glad to help 😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors