Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Venkatsj
Contributor III
Contributor III

Count Distinct for Bar Chart

Hi please help with expression for the below,

Group A Name  Company Name
A Doll Amc
A Bill AMC
E   BMC
A Bill  
C   Max
A Grudge  
A Vasing  
B   Box
D   Exist
D   Box
A Max  
D    

 

Dimension for the bar chart is Group : A, B, C, D, E

I need to count distinct Name and company Name where "A" refers to Name Column and remaining "B,C, D,E" refers to categories in Company Name column.

Where Group "A" should count(distinct) only "Name" column

Remaining Groups should count ( distinct) only e.g. "B" should count only company name "Box".

 

Kindly support, Thanks in advance

1 Solution

Accepted Solutions
abhijitnalekar
Specialist II
Specialist II

Hi @Venkatsj ,

 

Please use count(distinct organization name)

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

3 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @Venkatsj,

It is a little confusing to understand the required output.

Table representation of output would be helpful to understand and to help.

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Venkatsj
Contributor III
Contributor III
Author

Hi Abhijit,

find the table below,

Country Group Organisation name
BE HCP Max
BL HCP William
CR HCP George
CR HCP Ronald
CR HCP Kris
RE HCO Max pvt lt
RE HCO Ruby Pvt
RE HCO Nios ltd
RE HCO Rocker feller Ltd
NL Supplr Bricks Ltd
NL Supplr Bricks Ltd
FR Supplr Macrow Ltd

 

From the above table i would like to create a Bar & Area chart where Country is Dimension 1 and dimension 2 is Group. My measure will be count(distinct) of organization name for each group. Please ignore the above question, Thank you.

abhijitnalekar
Specialist II
Specialist II

Hi @Venkatsj ,

 

Please use count(distinct organization name)

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!