Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how can i put if, then count in the one expression?

Hi ,

I want to achieve the following but am not having any luck.  Any help appreciated:-

I want to count(green) all accountNo. or lines where the Member = 'Yes', and the AccountNo and productClassifation are the same.

   

Count
4
AccountNoAccountNameMemberProductNumberProductClassification
2500Red SoxYes503650RedBox
2500Lost and FoundYes502144Glass
2750Blue BearsNo502014RedBike
2700Green ToadsYes502260RedDoor
2700Green ToadsYes502874RedDoor

I'm trying :-

=if(IsMember='Yes',count(DISTINCT[AccountNo]&[AccountName]&[ProductClassificationSummary]) )

10 Replies
Saravanan_Desingh

Hi Jagan,

Thanks for this information. I was not aware before that we can use LIKE in IF. I had many places of such, where I was using MATCH or WILDMATCH before.