Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
gandalfgray
Specialist II
Specialist II

Rename column names that has square brackets in name

Hi

I have a select (MDX)  that returns column names like [Period].[Month].[MEMBER_CAPTION].

I would like to simplify those kind of names

but

Load [Period].[Month].[MEMBER_CAPTION] As Month

does not work

and

Load [[Period].[Month].[MEMBER_CAPTION]] As Month

does not work.

Is there a way to rename column names containing square brackets?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Use one of the other quote options. For example double quotes:

Load "[Period].[Month].[MEMBER_CAPTION]" As Month.


See this blog post for more information: QlikView Quoteology


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
tresesco
MVP
MVP

You may want to try like:

rename field (using mapname | oldname to newname{ , oldname to newname })

Or,

Rename field [ABC] to ABC

Gysbert_Wassenaar

Use one of the other quote options. For example double quotes:

Load "[Period].[Month].[MEMBER_CAPTION]" As Month.


See this blog post for more information: QlikView Quoteology


talk is cheap, supply exceeds demand
gandalfgray
Specialist II
Specialist II
Author

Thought I tried that...

Thanks!