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: 
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.

1 Solution

Accepted Solutions
sunny_talwar

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

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!