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: 
Not applicable

Hide a value for field in a multi box

Hi,

I have a multi box with field [Record Type] with values as below. I would like to hide the value 'Replace and RT' , so that it doesn't appear in the drop down for the users to select. Also, If I select type 'Replace', its should trigger the selection of 'Route' and 'Replace and RT'or selecting route triggers selection of 'Replace' and ' Replace and RT'.

Record type
New
Replace and RT
Replace
Route
Cancel
Order

Thanks in Advance.

1 Solution

Accepted Solutions
Simon_J
Partner - Contributor III
Partner - Contributor III

Hi Mohan,

In that case, could you add an expression in the multibox with:

=if(RecordType = 'Replace and RT',  'Replace', RecordType)

This will then allow you to have a selection in the multibox where you can select Replace and it will select Replace and Replace & RT in the table

View solution in original post

17 Replies
Simon_J
Partner - Contributor III
Partner - Contributor III

Hi Mohan,

Can you not edit this in your load script so you have :

If([Record Type] = 'Replace and RT', 'Replace', [Record Type] ) as [Amended Record Type]

This way you have an amended field ready to use from your dataload. You could then do an OR clause to include the Route fields as well so that Replace, Replace and RT and Route are classified as the same thing

Is that what you are after?

Simon

sunny_talwar

Try like this:

Aggr(Only({1<[Record type] -= {'Replace and RT'}>} [Record type]), [Record type])

or

If([Record type] <> 'Replace and RT', [Record type])

Ignore my response, and use the above response.

Not applicable
Author

Hi Simon,

thanks for your response. I can not modify it on the load script because I have a few other tables which will be affected..So I want to restrict it on the front end, if at all possible..

vishsaggi
Champion III
Champion III

Did not quite understand your second requirement, but to hide values in Multibox, just use this expression:

= IF(RecordType = 'Replace and RT', NULL(), RecordType)

Not applicable
Author

Hi Vish,

It is not working...my record type 'Replace and RT' still shows up in the drop down. Thanks for ur time

vishsaggi
Champion III
Champion III

Strange it works for me.

Add recordtype into Multibox -> Click edit and type the expression and label the expression.

Capture2.png

Not applicable
Author

Vish,

Thanks its working now.. I messed up something.

Not applicable
Author

The second part is that, If I select record type either " Replace" or "Route" in the filter, I should get all the information related to Route and Replace and RT (So all the records with Record type: Replace + Route + Replace and RT). Example as below:

Record Type ID          
Replaceabc1
Routeabc1
Routexyz 1
Replace and RT abc123

Thanks in Advance.

vishsaggi
Champion III
Champion III

Is this the table you want to display when you select the filter ? Are there only two fields or you have any additional information or data. ?