Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
tamilarasu
Champion
Champion

Duplicate Issue

Hi,

I have the below expression to concatenate two columns. But after concatenating again I got duplicate values. Can any one suggest me a expression.

= ( concat(distinct Shift_WD ,',') & ',' & Concat(Distinct Shift_Calculated,','))

Say for example, I have to remove Shift 4 in chart, (Shift 4 is present in Columns Shift_WD & Shift_Calculated)

Shift 1,Shift 4,Shift 4,Shift Issue

Thank you

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Something like this should work:

=Concat(DISTINCT Shift_WD, ',') & ',' & Concat({<Shift_Calculated -= P(Shift_WD)>} DISTINCT Shift_Calculated, ',')

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
SergeyMak
Partner Ambassador
Partner Ambassador

Hi Tamil,

It would be good to have a look at your app.

Could you share it?

Regards,

Sergey

Regards,
Sergey
tamilarasu
Champion
Champion
Author

Hi Sergey,

Thanks for the prompt response. Sorry. I am not allowed to share the data. Is it possible to remove duplicate values in a cell.?

jonathandienst
Partner - Champion III
Partner - Champion III

Something like this should work:

=Concat(DISTINCT Shift_WD, ',') & ',' & Concat({<Shift_Calculated -= P(Shift_WD)>} DISTINCT Shift_Calculated, ',')

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
SergeyMak
Partner Ambassador
Partner Ambassador

Yeah,

I believe so, but I can't say anything in this case without your app.

Try to replicate the problem with dummy data and share it or just use Scrambling in document properties.

Regards,

Sergey

Regards,
Sergey