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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
saivina2920
Creator
Creator

problem in not like syntax in count function

I'm trying to get count of values from specific column.

i'm able to get count if i use like condition. example is below.

=count(distinct [ColumnA] like '%TOTAL PROFIT%')

Suppose if want to get not like '%TOTAL PROFIT%',  then

what would be the syntax or different logic would be use..?

 

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

Not sure, How your expression is working? May be try this way?

count(distinct {<[ColumnA] -= {'*TOTAL PROFIT*'}>} [ColumnA])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

Not sure, How your expression is working? May be try this way?

count(distinct {<[ColumnA] -= {'*TOTAL PROFIT*'}>} [ColumnA])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
saivina2920
Creator
Creator
Author

Thanks for your reply.
I tried the below.
count(distinct {<[ColumnA] -= {'*TOTAL PROFIT*'}>} [ColumnA])
but both matching and non-matching showing the same count. i have different records.
How it is possible.
saivina2920
Creator
Creator
Author

any update...

saivina2920
Creator
Creator
Author

Great...