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: 
jozisvk11
Creator
Creator

Dimension for categories

I have table:

ROW              ID

1                       5

2                       6

3                       5

3                       6

4                       5

4                       6

4                       6

4                       6

5                       5

5                       6

5                       8

I need count the number of ID.

The final table should be:

ROW              ID

1                       1 - >(5)

2                       1 - >(6)

3                       2 - >(5,6)

4                       2 - >(5,6)

5                       3 - >(5,6,8)

Could you help me, how can I do it in script ?

Thank you. 

 

1 Reply
DavidM
Partner - Creator II
Partner - Creator II

Load

Count(distinct(ID) as ID,

Row

Resident Table

Group by Row;