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

Count with Aggr in Front-end expression

Hi All,

Any one help me to solve below issue

I want Count of ID field as final output in Front end expression by using ID, Indicator  and Generatedflag. No change on count by selections (static).

    

IDIndicatorConvertedGeneratedflagAmountCount of ID
123YYY10002
123NYY20002
124YNY2002
124NNY1442
124NNY1232
125NNN5001
126YNN6002
126NNN5672
126NNN5002
126NNN4602
127NNN5701
127NNN6791
127NNN7891
128NNY5671
128NNY4001
129YYN4002
129NYN3402
129NYN5502
130YYY3401
4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

I suggest you give some examples of what output you require.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anil_Babu_Samineni

What was the logic behind of Count ID. I am not getting as you expected. I've tried many times.

Count({<Generatedflag = {'No'}, Converted = {'Yes'}>} TOTAL ID)

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
Not applicable
Author

Hi All - Thanks For Responding

My Requirement is:

Case1: If ID having indicator 1Y and 1N distinct Count of ID = 2 --->EX ID 123   (with out distinct count of ID =2)

Case2: If ID having indicator 1Y and >1N distinct Count of ID = 2 --->EX ID 124   (with out distinct count of ID =3)

Case3: If ID having indicator 1N  and no Y distinct Count of ID = 1 --->EX ID 125  (with out distinct count of ID=1)

Case4: If ID having indicator >1N and no Y distinct Count of ID = 1 --->EX ID 127 (with out distinct count of ID=3)

Case5: If ID having indicator 1Y no N distinct Count of ID = 1 --->EX ID 130  (with out distinct count of ID =1)

Required this in Set Expression.

sunny_talwar

May be this:

Count({1} DISTINCT TOTAL <ID> Indicator&Converted&Generatedflag)