Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

remove duplicates

Hi,

We need to remove duplicates which is refering for unique ID.

For one product ID we are getting two supplier one is null and one is supplier name.

Here we need to remove the null supplier.

Please find the below for reference.

Capture.PNG

Thanks..

1 Solution

Accepted Solutions
tresesco
MVP
MVP

If this could have been resolved in the script, that would have been the best approach. For front-end solution try like:

Sum({<Supplier={'*'}>} [YourField])

Or,

Sum({<Supplier={"=Len(Trim(Supplier))>0"}>} [YourField])

View solution in original post

4 Replies
Chanty4u
MVP
MVP

try to suppres null values in the properties

or

try

sum(disticnt FieldName)

tresesco
MVP
MVP

If this could have been resolved in the script, that would have been the best approach. For front-end solution try like:

Sum({<Supplier={'*'}>} [YourField])

Or,

Sum({<Supplier={"=Len(Trim(Supplier))>0"}>} [YourField])

devarasu07
Master II
Master II

Hi,

Try to create calculated dimension like below

method 1:

=if( len(Supplier)>0,Product_ID)

and make sure to suppress null value.


method 2:

dimension,

product_id

supplier


create measure

sum( {<Supplier={"=len(Supplier)>0"}>}Qty)


method 3:

exclude null supplier from back end script using where clause.

load * Inline [

Product_ID,Supplier,Qty

0021020919,ABC,1518

0021020919,,1518] where len(Supplier)>0;

Capture.JPG

nareshthavidishetty
Creator III
Creator III
Author

Hi,

Both were correct.

But can mark only one as correct.

Thanks..