Hi @Bunly11 :
As the issue shows,this rule creates a circular referecne.
Once any controls uses it's own output to affect it's own data source,it will trigger a circular reference.
I’m not sure why you want to reference ‘Gallery1.Selected.DrugName’ from outside, usually I apply “ThisItem.DrugName” from inside.For emxample:
Filter(YourDataSource,DrugName=ThisItem.DrugName)
If you insist on using Gallery1.Selected.DrugName, then you need to use variables:
1\Add an arrow icon into Gallery1 and set it's items property to:
Set(TheVar,Gallery1.Selected.DrugName) /*TheVar is my custom variable*/
2\Set Gallery6's items property to
Filter(YourDataSource,DrugName=TheVar)
Best Regards,
Bof