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 Platform Community / Forums / Power Apps / Filter choices column ...
Power Apps
Unanswered

Filter choices column based on other list with values that not exists two times

(0) ShareShare
ReportReport
Posted on by 158

Hello:

 

I have created a sharepoint list called Agents. One column (HorariAgent) is based on other list "Horaris Agents", column "Horari".

I have created a powerapp to manage the Agents list.

In one form the column "HorariAgent" is represented by choice.

I need to filter this choice list. if the Horari value exists more than two times in Horari column of Agents table, item can't be showed in choice list . How can I get this?

Thanks in advance.

Francesc

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Hi @francescjp 

     

    This one is a bit headache inducing - add the below into the Items property:

     

    With(
     {
     _choices_above_2: Distinct(
     Filter(
     DropColumns(
     AddColumns(
     GroupBy(
     AddColumns(
     Agents,
     "_choiceValue",
     HorariAgent.Value
     ),
     "_choiceValue",
     "grouped_items"
     ),
     "count_selected",
     CountRows(grouped_items)
     ),
     "grouped_items"
     ),
     count_selected > 2
     ),
     _choiceValue
     )
     },
     Filter(
     Choices([@'Horaris Agents'].'HorariAgent'),
     Not(Value in _choices_above_2.Value)
     )
    )

     

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard