Data source is CDS. I have a gallery that needs to be filtered by several filters, lets assume 5 for now.
Any one of them could be blank. If one is blank, then the gallery shouldn't be filtered on that particular filter.
I initially had something like this: Filter(Entity1, If(IsBlank(Dropdown1.Selected.Value), Column1 = Dropdown1.Selected.Value, true),............If(IsBlank(TextInput1.Text), TextInput1.Text in Column5, true))
This worked fine until we hit the delegation limit. Now, I am trying to rewrite this expression factoring in delegation. One of the things I noticed is that if I check for blank values outside of the Filter, then there are no delegation warnings. In other words, the actual filters are all delegable.
However, that is almost impossible or very difficult to do because I will have to account for all the situations in which none, or one, or two, or three, or four, or all five filters could have values.
I am at a loss now. Any help will be highly appreciated. Please let me know if you need any other info.
Thanks,
Hardit Bhatia
https://thepoweraddict.com