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: 
ferha_jafri
Partner - Creator III
Partner - Creator III

How to count positive values in a column

Hello everyone,

It is very urgent ,the issue is i want to count no of positive values greater that 0 in a column.How can i write an expression as that column is doing a division of two previos columns.

Thanks in advance

Ferha Jafri

12 Replies
sujeetsingh
Master III
Master III

It seems Jafri got some answer anywhere but forgot to mention in this thread

VishalWaghole
Specialist II
Specialist II

Hi Ferha,

Make Flag for negative and positive values on script level like

if(Column_Value > 0,'POSITIVE','NEGATIVE') as FLAG

then use this flag for in your count expression like

Count({<FLAG = {'POSITIVE'}>}Column_Value)

Thanks and Regards,

Vishal Waghole

vikasmahajan

While Loading Data into Qlikview You can create FLAG Negative and Positive and use in expression.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.