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 / Edit Form Allow Values...
Power Apps
Answered

Edit Form Allow Values from Another Data Source - Allowed Value drop down doesn't work

(0) ShareShare
ReportReport
Posted on by 289

UPDATE: 

 

I fixed the error. The error was caused by the "Update" in the DataCard, I just have to change the DataCard Update Function to either DataCardValue38.SelectedText.Value or DataCardValue38.SelectedText.Result then the error disappeard. However my Allowed Value drop down doesn't work. It doesn't five me the list of selection from the 

 

Distinct(Filter('DataSourceA', Country in "US"),Available Fruit)   function .

 

Please help! 

 

Hello community,

 

I am trying to build an edit form from DataSource B, one of the edit field DataSourceB_Fruits  will be set to have Allowed Values because DataSourceB_Fruits can only have values from DataSourceA_Available_Fruit

 

I have the Allowed Values Item function set as follow:

 

Distinct(Filter('DataSourceA', Country in "US"),Available Fruit)

 

However, when I set the Allowed Values to come from  DataSourceA, the DataCard in the form then appeared to have error - with error msg as "Name isn't valid. This identifier isn't recognized", I am assuming the reason for the error is because DataCard is reading from DataSource B. 

 

To have a further example: I have two tables 

 

Table 1 - Country_With_Available_Fruit 

 

PKCountryAvailable_Fruit
1USApple
2UKApple
3CanadaApple
4FranceApple
5Gernamy Apple
6USBanana
7UKBanana
8CanadaBanana
9FranceBanana
10Gernamy Banana

 


DataSourceB Table 2 - US_Available_Fruit - with Price 

 

PKFruitPrice 
1Apple$10
2Banana$5

 

 

Is it possible to achieve this in PowerApps in anyway, if so, how?

 

 

Thank you in advance! 

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    What do you want to select from the dropdown.

    If fruit then;

    Distinct(DataSourceA,Available Fruit)

    If country then:

    Distinct(DataSourceA, Country)

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    lliu_western Profile Picture
    289 on at

    I figure out with the function as follow: 

     

    Filter(Distinct('[Source A]',Fruit), Country in "US")

     

    Filter needs to be outside of the distinct otherwise the drop down has no options. 

  • eka24 Profile Picture
    20,925 on at

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

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard