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: 
chandu441
Creator
Creator

Field1 > Field2 greater than Count in Set Analysis

Hi All,

I am having three Columns Field1, Field2 & Customer. I have to count the Customers which the condition is below in simple if.

=if(Field1>Field2, Count(DISTINCT Customer), 0)

 

I want to change this in Set Analysis in UI level. Please help me on this.

 

Thanks

Satya

Labels (2)
1 Solution

Accepted Solutions
Taoufiq_Zarra

Maye be :

=count({< Customer={"= Field1>Field2"}>} Customer)

 

an example :

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
Taoufiq_Zarra

Maye be :

=count({< Customer={"= Field1>Field2"}>} Customer)

 

an example :

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
chandu441
Creator
Creator
Author

Hi Taoufiq,

I've tried myself before getting your solution.

 =Count( {<Field1 = {"=Field1 > Field2"} >} DISTINCT(Customer) ) It worked from me.

Even your solution also getting worked out for the scenario.

Thanks

Satya