Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
i have a DAX query that I am using within the power query editor to bring in a table from an SSAS tabular server. Here the DAX query:
EVALUATE
SELECTCOLUMNS (
CALCULATETABLE (
'Client',
'Client'[Current Row Indicator] = "Y"
),
"Account Name", [Account Name],
"Account Number", [Account Number],
"Start Date", [Start Date]
)
When you run this in DAX studio or in SSMS, the columns come back without any brackets. Howerver, in Power Query, brackets are coming back around the column names like [Account Name]. I don't think there is a way around it using DAX syntax as I already did a selectcolumns to try and get rid of the brackets. Is there a way in Power Query to go through each column name and remove the brackets?
thanks
Scott
Solved! Go to Solution.
There are a couple of solutions to this given here:
https://community.powerbi.com/t5/Power-Query/Bulk-Renaming-column-in-PQ-with-a-pattern/m-p/2289893
There are a couple of solutions to this given here:
https://community.powerbi.com/t5/Power-Query/Bulk-Renaming-column-in-PQ-with-a-pattern/m-p/2289893
Thank you @AlexisOlson , this worked perfect!
I was able to create a separate function to parse the column names using your script.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 5 | |
| 5 |