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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create Multibox with selected Fields

Hi everyone,

I imported a csv-file that looks like this:

IDClient
1a
2a
3a
4b
5c
6d
7e
8e
9e
10f
11g
12g

You can assume that each ID is unique.

Now I want to create a multibox that lists all distinct Clients with at least 2 realted IDs. Clients with only one related ID should be invisible.

The result should look like this:

ClientID
a{1,2,3}
e{7,8,9}
g{11,12}

Clients b,c,d,f are omitted..

Thanks in advance.

EDIT: Is there also a way to count the amount of distinct Clients with at least 2 related IDs?

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Creating a straight table that looks like that can be done with:

    calculated dimension Client: if(aggr(count(distinct ID),Client)>1,Client)

    expression ID: '{' & Concat(ID,',') & '}'

Check the option Suppress When Value Is Null for dimension Client

But you can't create a multibox automatically the way you want. I also don't understand what you would want with such a multibox even if it could be created. What do you intend to select and what should that selection do?


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for your fast answer,

The data comes straight from an import  held in a flat csv-file. Every pageview is stored with an ID and and assigned Client. Now I want to list all clients with at least two pageviews (i.e. ID).

As I see from your reply multiboxes seem to be the wrong choice for that.