OK, I have reproduced the problem and there is a "solution".
There are two separate issues:
- The filtering does not work
- There is a warning message regarding service limitations (i in a blue circle), this is not an error but a warning
Let's deal with them in turn, starting with 1.
In CDS (as with some other data sources such as SharePoint), lookup fields contain records pointing to the other table and not IDs. In my test the record only had one field, the PrimaryId field. Hence this is what worked for me:
Gallery2.Items = Filter( TestInvoices, CustomerID.PrimaryId = Gallery1.Selected.PrimaryId)
So in your case you need to put a . after ProductCategory in the filter function and see what the autocomplete suggests, probably something like the PrimaryId field.
This worked for me, as you can see in the screenshot below (by the way to see what is selected I set the TemplateFill property of the first gallery to If(ThisItem.IsSelected, LightCyan ,RGBA(0, 0, 0, 0)) )
I also got the warning but I ignored it and the filter still worked fine. But I will deal with the warning in the next post.
In the meanwhile please let me know if this works for you.
