I want to filter gallery based on selection made in another gallery.
Data Source is SQL Database.
In Gallery2, I have selected ProductCategoryID's which don't have ParentProductCategoryID.
In another gallery I tried to use below function but I get delegation warning due to IN operator.
Filter(
'SalesLT.Product';
ProductCategoryID in Filter(
'SalesLT.ProductCategory';
ParentProductCategoryID = Gallery2.Selected.ProductCategoryID
).ProductCategoryID
)
SalesLT.Product table:
| ProductID | ProductCategoryID |
| 555 | 5 |
| 556 | 5 |
| 666 | 6 |
| 667 | 6 |
| 777 | 7 |
| 778 | 7 |
| 888 | 8 |
| 889 | 8 |
| 999 | 9 |
| 1000 | 10 |
| 1001 | 10 |
| 1100 | 11 |
| 1101 | 11 |
| 1200 | 12 |
| 1201 | 12 |
SalesLT.ProductCategory table:
| ProductCategoryID | ParentProductCategoryID |
| 1 | NULL |
| 2 | NULL |
| 3 | NULL |
| 4 | NULL |
| 5 | 1 |
| 6 | 1 |
| 7 | 2 |
| 8 | 2 |
| 9 | 3 |
| 10 | 3 |
| 11 | 4 |
| 12 | 4 |