Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm trying to import a table from a semantic model into Excel. I can get the data, but I need the same column headers that are present in the Power Bi Report, and the data via Queries and Connections shows the raw column headers with no obvious option to edit them.
I found a way to edit the headers in the Dax code;
-> Queries and Connections
-> Properties
-> Defintion
-> Command text:
I rename the columns, by editing the SELECTCOLUMNS statement. Following is an example:
However, the issue is, when the table is viewed in Excel the column header is always wrapped in [ ] eg: [NEW COLUMN NAME]
This excel spreadsheet is to be used by power automate for looking up data, and the column headers won't be recognised with the extra [ ].
Does anyone have a code solution to this?
A secondary issue is that the column order is changed whenever you edit a column, it disapears and appears at the end of the table, this seems to overide the column order listed in the query. Not sure why this is, seems to be a bug.
Solved! Go to Solution.
seems to be identical to this question Solved: Re: How to remove the table name in column headers... - Microsoft Fabric Community
Thanks for this suggestion. It does do the trick. It never occured to me to start a second query so I could bring all the tools of power query into play.
seems to be identical to this question Solved: Re: How to remove the table name in column headers... - Microsoft Fabric Community
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |