Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Related to Count function

Hello Everyone,

I have a branch master table in which there are  bank_code , branch_code, branch_desc and branch_address fields available.

By using this I want to display total no of branch for the same we are writing set analysis as below-

=count(distinct branch_desc) but it is not correct the actual count comes through this  = count(distinct bank_code + branch_code) logic

= count(distinct bank_code + branch_code) this formula is working fine in Sql server and giving right result but in qlikview it's not giving the same result as comes through Sql Server.

It is possible in qlikview or not ?

Please anyone give me some idea how we can solve this problem .

Thanks

1 Solution

Accepted Solutions
yduval75
Partner - Creator III
Partner - Creator III

Hello,

you can try count(distinct bank_code & branch_code) in Qlikview

View solution in original post

3 Replies
yduval75
Partner - Creator III
Partner - Creator III

Hello,

you can try count(distinct bank_code & branch_code) in Qlikview

Colin-Albert

+      is for numeric addition

&      is for string concatenation

So as Yoann says, use  count(distinct bank_code & branch_code)

Anonymous
Not applicable
Author

Hi Yoann Duval,

Thank you so much for the reply its working fine .