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 SharePoint Look...
Power Apps
Answered

Filter SharePoint Lookup field Choice

(0) ShareShare
ReportReport
Posted on by 21

I have the following SharePoint lists:

 

  • Locations (location - single line of text)
  • Areas (area - Single line of text0
  • Location Areas (location - lookup, area - lookup)
  • Log (Location - lookup, Area - lookup, date, responsible party - single line of text)

 

I'm editing the form for Log in PowerApps and when a user selects a Location, I want the Areas combo box to filter down to just those areas available at that location (eg in Location Areas).

 

Here is my formula for item in Area:

Filter(Choices(Log.Area), Value in Filter('Location Areas', Location.Value = DataCardValue2.Selected.Value).Area

 

DataCardValue2 is my Location data card.

 

I'm getting an error on the first "Value":

Can't convert this data type. Power Apps can't convert this Text to a Record.

 

Any ideas here?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @crmr298 ,

    Regarding the formula that you mentioned, I think there is something wrong with it. The first "Value" in your Filter function return a text value, but the Filter('Location Areas', Location.Value = DataCardValue2.Selected.Value).Area formula returns a Table value. You could not compare a Text value with a Table value directly.

     

    Please consider modify your formula as below:

    Filter(
     Choices(Log.Area), 
     Value in Concat(
     Filter(
     'Location Areas', 
     Location.Value = DataCardValue2.Selected.Value
     ),
     Area.Value & ";"
     )
    )

     

    Please consider try above solution, hope it could solve your problem.

     

    Regards,

  • crmr298 Profile Picture
    21 on at

    This solved my problem. 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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard