Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count occurrences of an item in a linked field.


So I'm having an issue. What I have is a list of Port Codes that are tied to a geopoint and geoname so that they can be displayed properly on a map. The four digit port code is a field [Port] with [Location] containing the geopoint data and [Port Name] containing the geoname data. What I'm trying to do is define these ports and their locations/names globally so that I can reference them in my Qlik Sheets and count how many times each port shows up in various excel sheets.

In my Main section in the Load Editor I have this:





    [Port Name]

FROM [lib://Downloads/Ports.xls]

(biff, embedded labels, table is Sheet1$);

tag fields [Location] WITH $geopoint;

tag fields [Port Name] WITH $geoname;

Now I have multiple excel files with [Port] as a field as well but when I try and use Count(Port) or Sum(Port) it either counts the number of times the port code shows up in the Ports.xls doc which is only the reference sheet, or adds the port codes together for some non-useful information.

Is there a way to globally define these locations but then count the occurrences of each in a different excel sheet?


0 Replies