Hi all,
I have 2 important collections,
base_collection
| Base Collection |
| Material | System | Quantity |
| Material-1 | System-1 | 40 |
| Material-2 | System-2 | 40 |
| Material-3 | System-2 | 40 |
| Material-4 | System-3 | 40 |
| Material-1 | System-2 | 40 |
| Material-6 | Equipo-7 | 40 |
which is where I get all the data, search_collection,
| Search Collection |
| Material | System | Quantity |
| Material-1 | System-1 | 35 |
| Material-2 | System-2 | 35 |
a collection that the user inputs and contains the data they are looking for in the base_collection.
What do I need? I need a gallery that filters the combination of material and system from the search_collection and searches for it in the base_collection, and then displays the filtered gallery:
| Filtered Gallery |
| Material | System | Quantity |
| Material-1 | System-1 | 40 |
| Material-2 | System-2 | 40 |
I tried using this code:
Filter(
base_collection,
And(
MasterID.ECAPP_Hdr_opt1 = GalleryHdrDetails_2.Selected.ECAPP_Hdr_opt1,
item_material = LookUp(
search_collection,
Row_CDMaterial = base_collection[@cr56a_material],
item_material
),
item_system = LookUp(
search_collection,
Row_system = base_collection[@cr56a_equipo],
item_system
)
)
)
, but it only gives me this gallery:
| Actual Gallery | | |
| Material | System | Quantity |
| Material-1 | System-1 | 40 |
| Material-2 | System-2 | 40 |
| Material-3 | System-2 | 40 |
| Material-1 | System-2 | 40 |
What I understand is that it searches for either the same material or the same system, but what I need is for it to search for the unique combination of material and system.