Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
scabral
Helper IV
Helper IV

Remove brackets from column names using Power Query

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

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User
2 REPLIES 2
AlexisOlson
Super User
Super User

Thank you @AlexisOlson , this worked perfect!

 

I was able to create a separate function to parse the column names using your script.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.