Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Foodie123
Contributor III
Contributor III

How to load distinct value?

Hello experts,

I would like to load only one row if it has the same policy number. 

Foodie123_0-1687376057917.png

I am using multiple sources and I have attached the script.

Thank you in advance!

 

Labels (1)
2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

In a nutshell, when you load the "main" table with Policy Numbers, order it in such a way that the first record for a policy would have the best set of attributes, compared to other possible rows, and then you can add the following condition to it:

Where not exists(PolNumber)

The first row per policy will get loaded and all subsequent rows will get excluded by this condition. If you need the same condition applied to multiple tables, then you may have to play with it, depending on your specific needs.

I hope this is clear.

Cheers,

elakkians
Partner - Contributor III
Partner - Contributor III

Hi,

 

Take a Resident of the 'Autobook' table and use Load distinct.

If all the values in the Rows are the same this will work.

 

NoConcatenate

Autobook_Final:

Load distinct *

Resident Autobook;

Drop table Autobook;