Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Countif Function in Qlick View

Hi,

I M new to QlickView so can any one help me how will I get the count of

Branches in the straight table of QlikView.

In excel I get the same result by using the formula [ =COUNTIFS($B$2:$B$14,A2) ]

Please find the attachment of excel where there is a table on sheet 1 and wanted the result given on sheet2.

42 Replies
qlikview979
Specialist
Specialist

Hi,

I have created straight table as per your requirement  in front end like below

Here C count is Zero(0)  that's why its not showing remaining thing is same.

Untitled.png

tyagishaila
Specialist
Specialist


LOAD Company

FROM

(ooxml, embedded labels, table is Sheet1);

LOAD

    Branches as Company,

    Branches

FROM

(ooxml, embedded labels, table is Sheet1);

In Straight Table

Dimension -  Company

Expression -  count(Branches)

sanjay006
Creator
Creator

Nice !

this will work fine.

sanjay006
Creator
Creator

Either u can create a loop or use the expression given by tresesco

Expression:

=SubStringCount(Concat (TOTAL Branches&'@'), CompanyCompany&'@'&'@')

Dimension :

Company

sanjay006
Creator
Creator

sanjay006
Creator
Creator

if u got the ans please close this thread

Anonymous
Not applicable
Author

I have 90 thousand data in my data set , so will be it possible to do it in inline method.

I have shared with you all a sample of it..

tresesco
MVP
MVP

bijay.jha‌,

Inline method is shown as an example. It works fine even if you load the data from excel or any other source.

Capture.PNG

sanjay006
Creator
Creator

Yup 😛

Anonymous
Not applicable
Author

It's not working for me, I have done the fallowing steps...

1) SET NullInterpret=' ' ;

2) Dimension: Country

3) Expression : =Substringcount(Concat(Total Branches&'@',Company&'@')