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

How to avoid duplicate values

I am getting repeated values on each row of the column. Below is the table. There are only 2 distinct value for Code status but it creates duplicate in column code. Also, for Primary code there is only one distinct code but it gets repeated on each row. Any idea to resolve this issue. Thank you

   

IDCodeCode_StatusPrimary Code
4P07.03CPR-Full CodeSTEMI
4P07.03No CPRSTEMI
4C67.9CPR-Full CodeSTEMI
4C67.9No CPRSTEMI
4C68.9CPR-Full CodeSTEMI
4C68.9No CPRSTEMI
4D50.9CPR-Full CodeSTEMI
4D50.9No CPRSTEMI
4E21.3CPR-Full CodeSTEMI
4E21.3No CPRSTEMI
5E78.5CPR-Full CodeVTE
5E78.5No CPRVTE
5E86.1CPR-Full CodeVTE
5E86.1No CPRVTE
5G89.3CPR-Full CodeVTE
5G89.3No CPRVTE
5J21.9CPR-Full CodeVTE
5J21.9No CPRVTE
5P29.12CPR-Full CodeVTE
5P29.12No CPRVTE
10 Replies
vvira1316
Specialist II
Specialist II

Hi Ash,

Great to know that it worked for you. Please keep in mind that FOR loop on smaller set of data is fine but for larger set of data it will be very time/cpu consuming process.  If possible, you may want to consider getting data ready outside of Qlik.

BR,

Vijay