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,
When I work in Power Query on one of the sheets that I loaded from another excel workbooks I do some manipulation.
Unpivot, Reorder and some other functions. In the end if someone will change one of the columns headers in my workbook all my work will be wasted since in my steps in power query when I checked, I saw that all the manipulation I did in Advance editor are using Column Names .
Is there any other opthion to make the steps (re order, unpivot, etc.) withou using column name?
There are possibilities to adjust your queries in such a way that they will still work if columns are not the same each time.
But it requires some in-depth Power Query knowledge.
Gil Raviv blogged about a series of 10 pitfalls in Power BI / Power Query.
Several of those pitfalls are related to hard coded column names (especially from pitfall #4 and up).
Maybe you can use a solution I provided in another topic to rename columns by position.
So if you include such a rename in the beginning of your query/ies, then you can use that column names in the rest of your code.
As a prerequisite for this solution: the number of columns must not change.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |