Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Luke_Killer_IT
Creator
Creator

Selection modification

Hello ,

I have this question, if I have a record selected in one of the worksheets for example as shown in the screenshot

 

Luke_Killer_IT_0-1648633720356.png

 

I can modify the selection with a button where it shows me, for example, in the next table all records only with the initial 5 characters?

 

Labels (3)
1 Solution

Accepted Solutions
MarcoWedel

maybe like this:

MarcoWedel_0-1648828838982.png

MarcoWedel_1-1648828868866.png

MarcoWedel_2-1648828889272.png

hope this helps

Marco

 

 

View solution in original post

7 Replies
MarcoWedel

can you provide an example of how your expected result would look like?

Luke_Killer_IT
Creator
Creator
Author

Of course I can,

I select a data at the beginning 

Luke_Killer_IT_0-1648719515919.png

 

 

 

Then by pressing the button

Luke_Killer_IT_1-1648715896647.png

 

 

You have to flirt in a new table of 5 characters

Luke_Killer_IT_2-1648715896650.png

 

 

Luke_Killer_IT
Creator
Creator
Author

@MarcoWedel 

I wanted to make such an action in the button but it doesn't work 😞 

Luke_Killer_IT_0-1648720212072.png

 

Luke_Killer_IT
Creator
Creator
Author

I managed to find a search error, but it still does not solve the problem. Is it possible to read the currently selected data?

marcus_sommer

You may use something like this:

$(=left(getfieldselections(Artikel), 5)&"*")

or maybe

=wildmatch(Artikel, $(=left(getfieldselections(Artikel), 5)&"*"))

- Marcus

MarcoWedel

maybe like this:

MarcoWedel_0-1648828838982.png

MarcoWedel_1-1648828868866.png

MarcoWedel_2-1648828889272.png

hope this helps

Marco

 

 

marcus_sommer

Probably there exists already some categorization to these article. But if they aren't specific enough you could create multiple ones within the script, maybe by splitting the parts by any delimiters or also just from the lengths.

Usually this could deduced from a dimension-table so the efforts and performance-impact would be not essentially - even by two dozens of them. And then you use them within dimension-groups in list-boxes but also in charts. IMO such an approach is much more handy as applying selection-logic with buttons.

- Marcus