Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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!