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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nancymarmat
Contributor II
Contributor II

Right function returns incorrect results.

I am trying to filter results in a chart to count the number of items that DO NOT end with the character 'S'.

The expression I am using is: =IF(right(LineItemNumber,1) <>'S',  TextCount(distinct LineItemNumber))

The results count all items.

What is wrong with the syntax?

Thank you.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this:

TextCount(DISTINCT {<LineItemNumber -= {'*S'}>} LineItemNumber)

or

TextCount(DISTINCT If(WildMatch(LineItemNumber,'*S'), LineItemNumber))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be try this:

TextCount(DISTINCT {<LineItemNumber -= {'*S'}>} LineItemNumber)

or

TextCount(DISTINCT If(WildMatch(LineItemNumber,'*S'), LineItemNumber))

nancymarmat
Contributor II
Contributor II
Author

Thank you.  That worked!