Ok, fingers crossed :-), I hope this will get you to a solution. Here's what I did:
Step 1: I created a collection to use for the test and added this to a button in my App to generate the collection colDatabase:
ClearCollect(colDatabase, Table({ Geometry: "Square", Color: "Red"},
{ Geometry: "Rhombus", Color: "Pink"},
{ Geometry: "Circle", Color: "Orange"},
{ Geometry: "Rhombus", Color: "Yellow"},
{ Geometry: "Circle", Color: "Blue"},
{ Geometry: "Triangle", Color: "Purple"},
{ Geometry: "Square", Color: "Red"},
{ Geometry: "Square", Color: "Blue"},
{ Geometry: "Triangle", Color: "Pink"}
))
Step2: I created a collection called "OnlyBlue" using the following statement, also added in a button in the App, which contains any Geometry that has the color Blue associated with it (so in this case it should only have Circle and Square.
ClearCollect(colHasBlue,Distinct(Filter(colDatabase,Color="Blue"),Geometry))
Step3: I created the statement that uses the "OnlyBlue" collection to display only those distinct Geometries that don't have the color blue associate with them.
Distinct(Filter(colDatabase,!(Geometry in colHasBlue)),Geometry)
This appears to work. I tried to combine the two statements together, but it didn't want to cooperate, but I believe you can run the first ClearCollect separately, and I actually find it easier to understand how and why it works when they are kept separately.
Here is a picture of the App. To summarize, the "No Blue" gallery is the results I believe you are looking for and it's Item property is equal to Distinct(Filter(colDatabase,!(Geometry in colHasBlue)),Geometry). The "Only Blue" gallery, just shows what is in the OnlyBlue collection and it's Item property is equal to ClearCollect(colHasBlue,Distinct(Filter(colDatabase,Color="Blue"),Geometry)). Finally, I added a gallery, which just shows everything that is in the colDatabase collection I created.
Please let me know if this resolves your problem and or if you have additional questions.
