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 / Combobox filter from t...
Power Apps
Answered

Combobox filter from two tables

(0) ShareShare
ReportReport
Posted on by 364 Moderator

Hello, 

I'm trying to filter data for a combobox from two tables. The back end is a SharePoint list and the column in the Choices is a Lookup pointing on another table. 

 

The first filter works fine but not the second. I've try  to combine with the help of Ungroup and ForAll, but looks I missing a clue to end it well. What is it?

 

PierreCA_0-1705949116903.png

 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @PierreCA ,

     

    Could you please show the error details?

    Or you can try this first:

    Filter(Choices(Communiquer.client);Id in Filter(collListePersonnesPourListeDeroulante;profilActif=true).ID;Text(Id) in Filter(EntitePersonne;Value(idEntite)=15).idPersonne))

     

    Best regards,

    Rimmon

  • PierreCA Profile Picture
    364 Moderator on at

    Hello @v-mengmli-msft , 

    Those are the errors message I get. I've made the translation. 

     

    PierreCA_0-1706017709290.png

    Also I've put a drawing of the relations between the tables, if it may help. 

    PierreCA_1-1706017788912.png

    I try the code you proposed but it fails. 

    I wonder if I shouldn't try to create a temporary table with Personne and EntitiePersonne( with conditions) and then test it with Choices (Communiquer.client).

  • PierreCA Profile Picture
    364 Moderator on at

    Still struggling with the code. I guess that's the right logic, but it expects a table with a single column. But how and where is the question.

    PierreCA_0-1706546562527.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @PierreCA ,

     

    The Filter() returns a table, please try to add ".ColumnName" at last.

    Just like this: Filter().ColumnName

  • PierreCA Profile Picture
    364 Moderator on at

    Hello @v-mengmli-msft , 

    Adding a reference to a column was something I tried, but I stay with two problem. 

     

    1) Id in Filter: is related to a delegation issue. 

     

    2) idEntite.Value = 15: Translation = Incompatible type to compare. Impossible to compare those types : Text,Number. 

     

    PierreCA_0-1706812194313.png

     

    3) If I use idEntite.ID = 15: It return a delegation issue and no result when I expect two choices. 

     

    I've try different approaches to solve the second issue. Can't find the solution. 

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @PierreCA ,

     

    1.Delegation error:

    in isn't a delegable function.

     

    2.data type error:

    The error shows idEntive.Value is text type.

    Two ways for your reference:

    1)Value(idEntive.Value)

    2)Replace 15 with "15".

     

    Best regards,

    Rimmon

  • Verified answer
    PierreCA Profile Picture
    364 Moderator on at

    Hello @v-mengmli-msft ,  🙂

    Unfortunately, the solutoin did't work and decided to try something else. 

    Thanks. 

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard