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 / Problem With LookUp on...
Power Apps
Answered

Problem With LookUp on SP List

(0) ShareShare
ReportReport
Posted on by 157

Hi everyone,

I have a SP List called 'Cat Man' with 3 columns: "Titre","Pilote","Mail".

I'm trying to create a Patch Fonction using a Lookup Fonction that get the value from a combobox selected item. But I have issues with it. The function that I use: 

LookUp('Cat Man'; ComboBox4.Selected.'Nom du groupe mis a jour'='Cat Man'.Title; 'Cat Man'.Mail)

 

But it doesn't show anything.

And this function:

LookUp('Cat Man'.Mail; ComboBox4.Selected.'Nom du groupe mis a jour'='Cat Man'.Title)


I get an error saying that I can't compare a Text and Table.

Does anyone as an idea to make it work.

Thanks by advance.

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Slowpoke 

    Yes, you are asking the Lookup to compare a table to a text string - 'Cat Man'.Title is a table!

    This will not be valid. 

     

    Please consider changing your Formula to the following:

    LookUp('Cat Man'.Mail; 
     Title = ComboBox4.Selected.'Nom du groupe mis a jour'
    )

     

    This will return the first record that matches the criteria.

     

    I hope this is helpful for you.

  • Slowpoke Profile Picture
    157 on at

    Ok, I tried this, but then I get the error: you can't compare those types: Control and Text.

    I tried other things but none of them seems, to work. I'm starting to think that what I'm trying to do is not possible.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Slowpoke 

    What is the exact formula you have now that has the error?

  • Slowpoke Profile Picture
    157 on at

    The same one as you wrote above

    So this one:

    LookUp('Cat Man'.Mail; Title=ComboBox4.Selected.'Nom du groupe mis a jour')
  • Slowpoke Profile Picture
    157 on at

    @RandyHayes 

    And also, when I create a Label with this formula:

     

    Label3.Text = Text(Combobox4.Selected.'Nom du groupe mis a jour')

     

     

    And I try to use this label in the Lookup, so with this formula:

     

    LookUp('Cat Man'.Mail; Title=Label3)

     


    I get the error: you can't compare control and control, but only with this symbol (and not the red cross):

    Slowpoke_0-1663777606222.png

     



  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Slowpoke 

    The last formula with the error is correct (that you have an error) Label3 is a control...not a value!  You can't compare that.

     

    What is the Items property of your Combobox4 control?

    And what kind of column is 'Nom du groupe mis a jour' in your list?

     

  • Slowpoke Profile Picture
    157 on at

    The items property of my combobox is:

     

    PNL.'Nom du groupe mis a jour'



    And 'Nom du groupe mis a jour' comes from another list called PNL, and it's a single string column with categories that look like this : "AA0000 - CATEGORIE NAME".

  • Verified answer
    Slowpoke Profile Picture
    157 on at

    Ok I managed to make it work:

    LookUp('Cat Man'; Title=ComboBox4.Selected.'Nom du groupe mis a jour').Mail

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 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard