Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Listbox filter

Hello,

My data looks like that:

FieldAFieldB
XA
XB
XC
YA
YB

I want to create a listbox that shows only FieldB for FieldA = Y.

I can do that easily with =if(FieldA=Y,FieldB) but I have 4 listboxs that work this way in my dashboard and that is resulting in a perfomance loss.

I think there is a way to do that with some aggregation function, but I just dont know how to do it.

Thanks for any help!

Att,

Luiz Fernando

1 Solution

Accepted Solutions
Not applicable
Author

Verify this way helps.

 

Creates a expression field and define:

 

=Aggr(ONLY({<FieldA={'Y'}>} FieldB), FieldB)

The use of set analisys can help in the matter of performance.

View solution in original post

6 Replies
Not applicable
Author

I'm not sure but You still will not be able to do it without using =if() so it will not increase performance

Not applicable
Author

Oh... thats bad.

But thanks anyway!

Caique_Zaniolo
Employee
Employee

Is the condition always the same? If that is the case you can create a new Field in your table containing only the values you need.

Not applicable
Author

No, its not. I'd have to create more tables

Not applicable
Author

Verify this way helps.

 

Creates a expression field and define:

 

=Aggr(ONLY({<FieldA={'Y'}>} FieldB), FieldB)

The use of set analisys can help in the matter of performance.

Not applicable
Author

It works!

But I've had to add =Aggr(ONLY(1{<FieldA={'Y'}>} FieldB), FieldB), so the listbox doesnt lose it's normal functionality

Thank you very much!