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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewaf
Creator
Creator

Issue on Graph

Hi Guys,

i have a simple report table, where the user have to select the Measure and Dimension that would like to see.

The thing is that for the "Measure", there's something that sometimes doesn't work. Here below an example:

User has selected "Costs PY" but as you can see on the report also appears "Sales" as measure.

Anyone knows where is the bug ?issue.png

Here how the script is build

issue2.PNG

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

The problem is that 1 is also part of 11, so when you select Cost PY, Sales comes for free... change all your conditional expressions to this

Sales

=SubStringCount(Concat('|' & _metricsNo & '|'), '|1|')


Cost PY

=SubStringCount(Concat('|' & _metricsNo & '|'), '|11|')


etc...

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

The problem is that 1 is also part of 11, so when you select Cost PY, Sales comes for free... change all your conditional expressions to this

Sales

=SubStringCount(Concat('|' & _metricsNo & '|'), '|1|')


Cost PY

=SubStringCount(Concat('|' & _metricsNo & '|'), '|11|')


etc...