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 / How to Populate Form w...
Power Apps
Answered

How to Populate Form with Datasource SharePoint List from a ComboBox with Distinct Values?

(0) ShareShare
ReportReport
Posted on by

I have a combo box and a form, both linked to the same Datasource (A SharePoint List). However, my combo box is set to Distinct('SharePointList', Name) so that I am not seeing duplicate name values (I'm working on a visitor sign in, this is for returning visitors).

 

When I set my form items to ComboBox.Selected, I get the error "Invalid Formula. Expected a value compatible with 'DataSource'".

Categories:
I have the same question (0)
  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @PatrickMcLeanGL , Can use below code on Item property of Form:

    LookUp('SharePointList', Title = ComboBox.Selected.Value)

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

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • PatrickMcLeanGL Profile Picture
    on at

    That worked, thank you.

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 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard