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: 
retko1985
Creator II
Creator II

Changing and limiting values in listbox (dynamically)

Hello,

I have this data in column / listbox:

What I want is to replace each D with word 'Department ', so it will be 'Department 1' instead of 'D1'. And I also want to remove the values N and TOTAL, so I will have only Department values in a listbox.

I need it dynamically, since i don't know how many departments I will have.

Can someone help me?

Thank you.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create List box using this expression

=Replace(IF(WildMatch(Department,'D*'),Department),'D','Department ')

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Create List box using this expression

=Replace(IF(WildMatch(Department,'D*'),Department),'D','Department ')

saimahasan
Partner - Creator III
Partner - Creator III

Hope this solves your problem.