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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Joining Data/ Unique values

So I am joining two tables that I need to have in a qvw then export.  There is a field in both of the sets of data that have duplicate values. What would be the best strategy in removing the duplicates. What it be using a DISTINCT expression either in the load script or the table box itself?

4 Replies
jpapador
Partner - Specialist
Partner - Specialist

You could do a LOAD Distinct, but that may not work.  Why are the values in the table non-distinct?

Anonymous
Not applicable
Author

The load distinct value didn't work. I made a list box of the field that the values need to be unique and used show frequency and saw that there were still duplicates.

The values are non distinct because both tables contain the same field but one table has values the other doesn't.

JonnyPoole
Former Employee
Former Employee

Are these date fields or date/ time fields ?  If yes, you'll need to round them to whole dates with floor() .  

Load Distinct should remove duplicate rows , if all the values of all the fields in the load are the same.

Can you post a sample ?

You can also use a group by in the load to aggregate fields together but you'll need to use summary functions (sum() ) to aggregate the numerics.

saurabh5
Creator II
Creator II

are the two field date fields?

can u place an example of the field values to look for a solution.