Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Occurrences of specific values to a Straight Table

Suppose I have a long table:

Usertable:

UserCountry
johnUK
jackSG
janeUK
joeyID
joelFR
jessUK
jillDE
joshFR
joosNL

And I'd want a little Straight Table next to it showing this kind of sums.

Summary of key countries:

Key_countryUsers_in_there
UK3
SG1
FR2

For this summary table the countries to be considered are pre-defined, i.e. the list Key_country comes from a different table, to prevent all countries occurring in the Usertable from showing in the summary

What should I have for the Users_in_there expression to get the counts highlighted with red? In 'pseudocode' it mean it to be something like this:

     = number of occurrences of Key_country in field Country

1 Reply
Not applicable
Author

try to use

=if(match(Key_country,Country)=1, Key_country)

as a dimension