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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Customizable Straight Table - Using with toggle

Hello to all,

I have in my dashboard a tab in which I included one customizable straight table. It's working perfectly, but as my dashboard has two languages, I cannot find a way to change the language in my fields.

In attach, there is the model used to build my customizable table.

I'm using a toggle to change the languages in my dashboard and normally I was using a function to change the labels of the fields.

Please find the expression used: '=Text(Only({<Index = {18}>} [$(vLanguage)]))'

vLanguage '=Minstring(#LANGUAGE)' (#LANGUAGE is my language toggle).

straight table_1.PNG

straight table_2.PNG

I can change the label in my customized table:

straight table_3.PNG

straight table_4.PNG

But I could not find a way to change the information in my listbox (that is where I filter the values for my table):

straight table_6.PNG

After I load my inline, I select the text using the following expression:

straight table_7.PNG

The result is that I have a lixbox that looks like the following:

straight table_5.PNG

Any thoughts on how to solve this issue? Maybe using some 'trim', 'mid' with a conditional function, but I'm not sure how to do this.

Thanks in advance for your help.

Kind regards,

Marco Arruda

5 Replies
swuehl
MVP
MVP

Sorry, I somehow missed the link between your usage of a language selector and changing the table labels and what you are trying to do with your list box.

By using string functions like right(), trim(), mid() etc., you want to achieve which desired result?

sunny_talwar

Would you be able to share a sample or may be elaborate a little more to explain what exactly are you trying to do?

Not applicable
Author

Fair enough, I was in a hurry when I wrote this.

Well, starting with the language listbox. I loaded an inline called #LANGUAGE that contains two fields 'portuguese' and 'english'.

I'm using a formula '=Text(Only({<Index = {18}>} [$(vLanguage)]))' in all my listbox labels .

As I said, the vLanguage variable stands for '=Minstring(#LANGUAGE)'.

Regarding my customizable straight table, I'm using the same logic to change the labels of its header:

So, if I choose straight table_1.PNG

I would have straight table_4.PNG

and if I choose straight table_2.PNG

I would havestraight table_3.PNG

I would like to apply the same distinction for my straight table:

straight table_8.PNG

I use the follow expression as an expression in my listbox (_Dimension).

straight table_7.PNG

The main issue is that those names are 'values' in my list box.

straight table_9.PNG

Please, let me know if there is still missing points.

I can't send you an sample right now, because of the data that my app has, but if you can't understand I'll build one to show my point.

Thanks a lot folks!

sunny_talwar

How do you plan to employ the distinction? This list box or inline is all in portuguese, right? Where is the English version of this inline? Is there one?

Not applicable
Author

well, my idea was to use a if statement or something, but I'm not sure the best way.
The idea would be have like in my inline:

01 BPC - Categoria de Despesas / BPC - Expenses Category

So, by the expression

= Right ([_Dimension], Len ([_Dimension])-3) to have some expression that looked in the inline and changed it 'look' up according to the toggle.
That way I could keep all my structure in my dashboard.

Please let me know if you need more information...