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: 
principal
Partner - Contributor III
Partner - Contributor III

Concatenation Issue

Hi,

I have the following expression

=Concat(If(Len(Trim(Aggr($(e.appointments), [Appointment Priority]))) > 0, [Appointment Priority] & ' - ')

& trim(Aggr($(e.appointments), [Appointment Priority])),chr(13))

 

with the following result

clipboard_image_0.png

how do I remove the first - 0

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

I added a set modifier to your outer concat. 

 

=Concat({<[Appointment Priority]*={"*"}>}If(Len(Trim(Aggr($(e.appointments), [Appointment Priority]))) > 0, [Appointment Priority] & ' - ')

& trim(Aggr($(e.appointments), [Appointment Priority])),chr(13))

 

View solution in original post

3 Replies
Vegar
MVP
MVP

I added a set modifier to your outer concat. 

 

=Concat({<[Appointment Priority]*={"*"}>}If(Len(Trim(Aggr($(e.appointments), [Appointment Priority]))) > 0, [Appointment Priority] & ' - ')

& trim(Aggr($(e.appointments), [Appointment Priority])),chr(13))

 

Brett_Bleess
Former Employee
Former Employee

Alan, did Vegar's post help you resolve things?  If so, please be sure to give him credit due by using the Accept as Solution button on his post, this will also let others know the solution worked as well.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
principal
Partner - Contributor III
Partner - Contributor III
Author

Thanks Vegar, it works perfectly.