Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
amien
Specialist
Specialist

[ ] needed in calculated dimension

I have this calculated dimension:

=$(=(SubField(GetFieldSelections(_dim),',',1)))


It works very well, but the issue is that _dim cant contain a name like "Sales Order". So it can contain a fieldname which contains a space. It will result in a Calculation Error.  "SalesOrder" would work perfect with the above expression.


Question, where do i put the  [ ] to solve this? can't figure it out.


Thanks in advanced

1 Solution

Accepted Solutions
4 Replies
Not applicable

Try with this:

=$(=(replace(SubField(replace(GetFieldSelections(Quarter),' ','|'),',',1),'|',' ')))

amien
Specialist
Specialist
Author

Thanks for your reply. But it's not working. Not sure also if we are on the same page.

I added an example

amien
Specialist
Specialist
Author

=$(=('[' & Trim(SubField(GetFieldSelections(_dim),',',1))) & ']')