Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
principal
Luminary Alumni
Luminary Alumni

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 (2)
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
Luminary Alumni
Luminary Alumni
Author

Thanks Vegar, it works perfectly.