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: 
montubhardwaj
Specialist
Specialist

Ignoring repeating values in staright table

Hello all,

I have a staright table and in which I need to ignore the repeated combination of (Dept Id+Ord Id) if more than once. See below for more explanation.

Show count as '1' if it is a unique Dept Id and Ord Id.  If Dept Id+Ord Id is repeating, then just put ‘1’ only for the first value and put ‘N/A’ for the remaining values.Please refer to the below attachment for more. Please let me know how we can implement this logic in the chart (straight table)?

Thanks in advance.

Cust IDDept IDOrd IdSales(in $)Count
430006
1A110050001
2A220070001
3B130060001
4B13008000N/A
5B13009000N/A
6B170090001
7C240040001
8C24003000N/A
9D160010001

Regards,

Sharma

6 Replies
lironbaram
Partner - Master III
Partner - Master III

hei

try this one

hope its helps you

montubhardwaj
Specialist
Specialist
Author

Hello Liron,

Your logic works fine in sample application but when I implemeneted the same in my application, it is not working as desired. Dont know where I am making the mistake

lironbaram
Partner - Master III
Partner - Master III

hei

attach is an example pf calculating your logic in the script

may be you can use it

sridhar240784
Creator III
Creator III

Sharma,

Could you post your sample application which will explain your problem in detail.

-Sridhar

montubhardwaj
Specialist
Specialist
Author

HI Liron,

Thx for the response. Actually in my real report, I have many fields in the table(around 20). So does that mean I have to pull all the fields in order by clause to make it work ?

lironbaram
Partner - Master III
Partner - Master III

you need to order only the fields that are relvant  an you need sorted

for example if you have client name you do not need to sort it

can you post a sample data