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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need to count data

Hi Everyone,

I m new to Qlikview.

i have a excel file with two sheets(sheet A & B) both having same field. I joined it using Left Join.

Now i want to know the count of the field Quote in sheet A.

Labels (1)
5 Replies
Anonymous
Not applicable
Author

In your load script, add a Field "Source" or something like that so you can use an expression like:

count({$<Source={'A'}>}Quote)

maxgro
MVP
MVP

see attachment

Not applicable
Author

How do we add a new field

Load

..

XYZ,

Simply Like this ?

Not applicable
Author

I m using the personal Edition i cannot open the attachment

Could you please share the script

ashfaq_haseeb
Champion III
Champion III

Hi,

Script

Table:

LOAD Quote, '1' as Sheet

FROM Book1.xlsx (ooxml, embedded labels, table is A);

Concatenate

LOAD Quote, '2' as Sheet

FROM Book1.xlsx (ooxml, embedded labels, table is B);

New chat straight table

No Dimension just write 3 Expression

Expression1:

count(Quote)

Expression2:

count({<Sheet={1}>} Quote)


Expression3:

count({<Sheet={2}>} Quote)



Regards

ASHFAQ