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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter dimensions in a chart

I have 4 charts that are point at tables that are filtered by yesterday's date.  In one of the bar charts, I want to show the count of any records that have 'Wrong' in the defect field.  I could filter the data, but that would compromise the other charts - I'd like to do in the chart itself.  In another chart, I want to show the top 5 defects excluding one particular defect (always the highest and skews the data).  Any help would be appreciated.

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

= Count({<defect = {'*Wrong*'}>} FieldName)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

7 Replies
MayilVahanan

Hi

Try like this

I want to show the count of any records that have 'Wrong' in the defect field.:

= Count({<defect = {'Wrong'}>} FieldName)

I want to show the top 5 defects excluding one particular defect :


Use dimension limit or rank functions.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

I think that is getting me closer.  I put that statement in the defintion box of the expressions tab.  How would I write this to look for Wrong anywhere in the defect?  Something similar to  - defect Like '*Wrong*' - in previous work I've done.  I tried playing with the syntax, but could never get it right.

MayilVahanan

HI

Try like this

= Count({<defect = {'*Wrong*'}>} FieldName)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks for the help - that did it.

Not applicable
Author


One more question on the other chart - how would the expression look for exclduing one defect?  Not like '*Delay*'

MayilVahanan

HI

Try like this

= Count({<defect -= {'*Delay*'}>} FieldName)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks again - that did it as well.  Was not familiar with the '-=' as not equal, but am now.