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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Selecting Multiple Dimensions in Error

I have a list of dimensions which users can choose from to populate a table.

In the straight table chart, I have the following formula in the "Enable Conditional" field in the Dimensions tab:

=SubStringCount(Concat(_Dimension,'|'), 'Field Name')

This is causing an issue for fields with similar names. For example, I have Account Code and Allocation Account Code. When the user chooses Allocation Account Code it populates the table with the Account Code field AND the Allocation Account Code field.

I would like the table to only populate for the Allocation Account Code.

Any ideas?

Thank you,

- dave

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Try something like this:

SubStringCount('|' & Concat(_Dimension,'|') & '|', '|Field Name|')


(all fields, including the first and last, are bounded by | characters)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Try something like this:

SubStringCount('|' & Concat(_Dimension,'|') & '|', '|Field Name|')


(all fields, including the first and last, are bounded by | characters)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
antoniotiman
Master III
Master III

Hi David,

excellent Jonathan' solution.

Another way is

Your Dimension Table

_dimension,_description

AccCode,Account Code

AllAccCode,Allocation Account Code

......

Conditional Expression :

SubStringCount(Concat(_dimension,'|'),'AccCode')

Your List Box :

_description

Regards,

Antonio

Anonymous
Not applicable
Author

Thank you for both of your responses. Jonathan's solution was most easy to apply so I went with that. Appreciate the help per usual.