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 / Populating a field bas...
Power Apps
Answered

Populating a field based on selected field in same datasource

(0) ShareShare
ReportReport
Posted on by 37

Hi all

I have a SharePoint form with two data sources on it, I have successfully populate the Meeting Name in the second based on what is selected in the first, but I want to now use that second value to populate the Coordinators from the selected record, it is a multi select user field, and in my example/test case there are 3 people selected, what is the best way to show the 3 people and then be able to test if the current user is one of those?

 

I tried the flow approach but I need the coordinators to be available during the form update or creation process so I am in essence trying to look it up during the form creation, the flows only give it to me after the record is created.

 

Any thoughts/guidance would be appreciated.

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @chrisbarbers,

    To be honest, current provided info make no sense on helping you figure it out, too few details...

    You need to tell me what your two data source look like , what is this Coordinators, Meeting Name in the second?

    What is second value that used to populate the Coordinators?

    What is this selected record?

    What is your example/test case?

    What is the relationship between two data sources?

  • chrisbarbers Profile Picture
    37 on at

    So I have split the form into two top half is datasource 1 which is the form for adding items to the current SP List, this has a few drop downs/fields, 1 is Meeting Name which is DataCardValue2

    I am using the selected DataCardValue2 value to make the Meeting Name - DataCardValue8 in the second datasource the same, this works great.

    In datasource 2 there is a field called Coordinators at the moment in my lower half of the form this is shown as a drop down as it is a user multi select field, but it currently works like the standard field in that I can select multiple people, what I want/need is it to show the values based on the selected Meeting Name.

    Does that help?

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @chrisbarbers,

    So Coordinators is a Person coumn allowing multi select?

    To filter the Person fields in your second data source, you could try to set the Items property:

    Ungroup(Filter(list2,MeetingName.Value=DataCardValue8.Selected.Value).Coordinators,"Coordinators")

    vqiaqimsft_0-1704810292320.png

     

  • chrisbarbers Profile Picture
    37 on at

    Thank you @v-qiuyu-msft so it didn't quite work, but I played around a bit and made some progress, using

    Ungroup(Filter(Meetings,'Meeting Name' in DataCardValue2.Selected.Value).Coordinators,"Coordinators") which uses the datasource 1 Meeting Name field or 
    Ungroup(Filter(Meetings,'Meeting Name' in DataCardValue8.Text).Coordinators,"Coordinators") using the second Meeting name field (.Value didn't work here) I now get the list of the Coordintaors associated with that Meeting name (albeit twice in both cases), but they are not selected, I assume because this contains Filter, can I use a different approach to select them?

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @chrisbarbers,

    I have mentioned that in my previous reply that you need to tell me more about your data type ,which is the key to your issue.

    I could not imagine the data set on your side.

     

    I am using the selected DataCardValue2 value to make the Meeting Name - DataCardValue8 in the second datasource the same.

    I provide the formula based on the above decription, you said the Value parameter, I am not sure the data type.

     

    Please do provide all the column type of your columns in both your data sources.

  • chrisbarbers Profile Picture
    37 on at

    @v-qiuyu-msft apologies, yes the Coordinators column is a person column with multi select, 3 people are selected in the column for the particular record that matches the meeting name in DataCardValue8 (but it could be more or less for other meeting names), your formula or my version of it is filtering it correctly to show the correct 3 people in this case, albeit twice.

     

    What I am trying to do is get the values in a field or variable(s) so I can reference them against the current user in order to limit options in the other datasource, i.e. if current user != coordinators then limit options....

     

    Hopefully that clarifies.

  • Verified answer
    chrisbarbers Profile Picture
    37 on at

    I have worked out a solution, 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
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