March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everyone,
I have a table like this, and i want to expand the column "Datei transformieren"
When I click to expand the code it looks like this:
Now I want to use codes to get the column names dynamically to prevent column name changes or errors when new column names appear, how can i do that?
I've tried the code like this:
Expand = Table.ExpandTableColumn(#"Andere entfernte Spalten1", "Datei transformieren", Table.ColumnNames(#"Andere entfernte Spalten1"{0}[Datei transformieren]))
But then I can only get some of the column names and not all of them, because each table has different column names.
Maybe there are some codes to replace that big list of column names above?
Thanks a lot!
Solved! Go to Solution.
Problem Solved. Thanks a lot!
While it is technically possible, it is quite a resource expensive approach to read all the headers from all the tables to then create a custom list of headers that you might want to expand.
You can try and leverage an approach that uses the following functions:
There are other approaches, but they depend on what your requirements. I'm sharing the links below as other approaches that I've used throughout the years:
https://www.youtube.com/watch?v=XPWnPAhQEiQ
https://www.youtube.com/watch?v=omu-sjzNO44
Hope this puts you in the right path!
Thank you for your answer
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.