Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to avoid duplicates when export to excel?

Hi,

I have one table which have dimension CustomerID with duplicates. for each CustomerID there are multiple unique ID. My user don't want to see duplicates in CustomerID when exported to excel. but wants all CustomerID with ID. so, I used Pivot table. In qvw it is showing only once instance of CustomerID with ID, but when exporting to excel it is showing duplicate CustomerID.

How to sort this out. Can anyone help me please.

Thanks.

24 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

have a look at attached application and Export.

Let me know if that worked.

Regards

ASHFAQ

martynlloyd
Partner - Creator III
Partner - Creator III

Did you use DISTINCT or GROUP to create a summarized table?

This should definitely work. Can you describe your data?

Marty.

Not applicable
Author

Thanks very much. will the macro work if I use this macro in qvw which is in access point? because I have not used any macros in my qvws which are in access point?

ashfaq_haseeb
Champion III
Champion III

Hi,

Yes you have to use IE Pluggin.

Macros will not work on AJAX Client.

If it answered, can you close this thread.

Regards

ASHFAQ

Not applicable
Author

Thanks. unfortunately we have Ajax client. how can I solve this with Ajax client. Is there any other way?

ashfaq_haseeb
Champion III
Champion III

Hi, Macros does not work with Ajax.

I don't think there is an alternate.

Regards

ASHFAQ

martynlloyd
Partner - Creator III
Partner - Creator III

Going back to your pivot chart, please can you post the expressions here?

Not applicable
Author

Thanks. All I have the expression as below

=If(colour<>'out',colour)

=Count(distinct(If(IsNull(Dateproblemresolved),ID)))

CustomerID is used as dimension

martynlloyd
Partner - Creator III
Partner - Creator III

Ok. Now how is the user exporting to excel,

Is he/she using Export...

Or is he/she using Send to Excel?

Not applicable
Author

Thanks. User is using send to excel. Please any help.