Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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 Nag bro,

I am totally confused, as per his requirement he is saying dimension is 

Dimension:- Company

Expression:-count(Branches)

Here  you are taking

Dimension:- Branches

Expression:-count(Branches)

can you explain me  what is correct.

qlikview979
Specialist
Specialist

Hi Bro,

I tried  sheet1 with formula like COUNTIFS($B$2:$B$14,A2)


its giving result  in excel like


Untitled.png

sanjay006
Creator
Creator

Here is your expected result buddy !

Do this on your back end

Test:
LOAD if(IsNull(Company),Branches,if(WildMatch(Company,Branches),Company,Branches)) as Company,
Branches
FROM

(
ooxml, embedded labels, table is Sheet1);

and use

company as dimension

and

count(Branches) as expression in your straight table

Anonymous
Not applicable
Author

But Sanjay,

I want in expression as we do in spreadsheet ( Countif )

qlikview979
Specialist
Specialist

Hi,

sanjay answer is correct 

Anonymous
Not applicable
Author

I never say anyone is wrong.

But I want the straight table and the calculation part is to be done on expression tab of Straight Table.

qlikview979
Specialist
Specialist

sorry,

sanjay i tried with your code in Dimension column C is not  showing in front end.

Regars

tyagishaila
Specialist
Specialist

I think it is little bit tricky,

Try it

Find attached qvw

Anonymous
Not applicable
Author

Sorry i don't have download access in my network .

Please share the expression.

tresesco
MVP
MVP

May be like this:

Capture2.PNG

Capture.PNG

Capture.PNG