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: 
omid5ive
Creator II
Creator II

count common value

hi

i have a table that have 2 field, project and vendor

i need to create pie that show how many vendor work on just one project and how many vendors work s on more than one projects

can any one help me for this two expression

the table like below

VendorProject
A1
A2
B3
C4
C5
D6
E7

in this sample i need the pie chart that show first slice with value 2 and second slice with 3

1 Solution

Accepted Solutions
omid5ive
Creator II
Creator II
Author

i think i can find it

=count( DISTINCT if(Aggr(Count(distinct ProjectName),vendor_name)>1 ,vendor_name,Null())) for more than one

=count( DISTINCT if(Aggr(Count(distinct ProjectName),vendor_name)=1 ,vendor_name,Null())) for just one

View solution in original post

1 Reply
omid5ive
Creator II
Creator II
Author

i think i can find it

=count( DISTINCT if(Aggr(Count(distinct ProjectName),vendor_name)>1 ,vendor_name,Null())) for more than one

=count( DISTINCT if(Aggr(Count(distinct ProjectName),vendor_name)=1 ,vendor_name,Null())) for just one