web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Multiples filters

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

Hi, i want to make filters like excel.

without circular reference error

there is any idea?

Excel, all the columns are type text

there is a table that i want to show the info following what is choose in filters

Columns: Name, Age, Gender, City.

but when i choose a age or other, the others filters didn't show their info according it, show everything of the columns

 

So i tried:

for exemple, 4 filters: name, age, gender, city

In items comboBoxName:

Distinct(Filter(dataSource;
       AgeCol in comboBoxAge.SelectedItems;

       GenderCol in comboBoxGender.SelectedItems;

       CityCol in  comboBoxCity.SelectedItems
); NameCol)

 

In  items comboBoxAge:

Distinct(Filter(dataSource;
       NameCol in comboBoxName.SelectedItems;

       GenderCol in comboBoxGender.SelectedItems;

       CityCol in  comboBoxCity.SelectedItems

); AgeCol)

the same rule for the rest...

 

then come a error: This rule creates a circular reference between properties which is not allowed. A property cannnot reference itself or other properties affected by its value

 

Items of the table there is a function Filter for what is in the filters.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    If  you want to supply the Items property for say ComboBox1 from Table1,  for example. The items property of the combobox will be:

    Sort(Distinct(Table1,Name),Result, Ascending)

    If you want to filter a gallery based on the this combobox, the Items property of the gallery would be:

    Filter(Table1,Name=ComboBox1.Selected.Result)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    you are right, but when i did it

    using something like: Sort(Distinct(Table1,Name),Result, Ascending)

    Table1 is how i want to show the info, is is not the dataSource

    show the error "the function Sort has invalid arguments" and "the function Distinct has invalid arguments"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard