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: 
kunkumnaveen
Specialist
Specialist

how to write expression

Hello,

            i have a field called GROUP, and i want to see whether is there any customer who have bought  a product in all the three groups.                                            

=count({<Group={'LIFESPACE','CLUB','FINANCE'}>}Customerid)

but this expression counting all the customer who are in the GROUP irrespective of whether customer bought a product in all the GROUP

how to write a expression which check and count only those customerid who bought a product at least once in all the three diff GROUP

Thanks

Naveen

1 Solution

Accepted Solutions
Anonymous
Not applicable

May be this =Count(DISTINCT{<Customerid = p({<Group = {'LIFESPACE'}>})*p({<Group = {'CLUB'}>})*p({<Group = {'FINANCE'}>})>}Customerid)??

View solution in original post

7 Replies
kunkumnaveen
Specialist
Specialist
Author

how to write a expression which check whether the customer brought a product in all the Groups or not

plzz

kunkumnaveen
Specialist
Specialist
Author

Any Suggestions PLz....

kunkumnaveen
Specialist
Specialist
Author

i am looking expression for below requirement


No. of customers who bought  life space product also bought  CLUB and Finance products in last one year

prieper
Master II
Master II

aircode:

COUNT({$ <Prod = {A, B, C}, MyYear = {2016} >} DISTINCT Prod) = 3

else please supply an example

HTH Peter

Anonymous
Not applicable

May be this =Count(DISTINCT{<Customerid = p({<Group = {'LIFESPACE'}>})*p({<Group = {'CLUB'}>})*p({<Group = {'FINANCE'}>})>}Customerid)??

Anil_Babu_Samineni

Can you provide data set and expected result

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
kunkumnaveen
Specialist
Specialist
Author

Thanks Shiva ,it is working.....bang on