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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Displaying only unique records in a Table Object

Hi,

Is there any syntax which only displays unique records based on a particular column?  For example, I have ID numbers appearing in one of the column and I only want the unique IDs to appear in the table (i.e. no duplicates).  Is there any way of doing this? 

Any help would be greatly appreciated.

Thanks.

Rajiv.

3 Replies
rajni_batra
Specialist
Specialist

use distinct() function.

hope it help!!!!!

Not applicable
Author

Thanks Rajni for getting back to me.

How do I go about implementing that in a Table Box?

My column name is Sales_ID

Thanks.

swuehl
MVP
MVP

If I understood your request correctly, you can use a calculated dimension to filter your ID field, try something like

=aggr(if(count(ID)=1,ID),ID)

You can use this as field expression in a list box or calculated dimension in a (straight or pivot) table chart.

This might be not very performant on large data, so you could also use something similar in the script, creating a new field flagging the unique ID values.

Hope this helps,

Stefan