web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Need to pull unique va...
Power Apps
Unanswered

Need to pull unique values and show as drop down on a form

(0) ShareShare
ReportReport
Posted on by 8
I am working with two SharePoint Lists List 1 and LIst2. in addition, i have an Excel file also that is located on a folder on SharePoint whose location is say Documents/ ABC/ Reports/datafile.xlsx
 
So, the 3 data sources are -
SharePoint Lists - List 1 and LIst2
Excel file (datafile.xlsx) Located at - Shared documents/ABC/Reports
 
(The reason why i decided to use an Excel file as my data source here is because this is a file that keeps updating and is a big list and is coming from a different source. So instead of having another SharePoint list, i decided to use it as is. Let me know if there is a better way to do this based on what I am going to write ahead please
 
Query 1
I have created a form using Editform from List 1 and would like one of the fields to show the unique values from Column X of the above Excel file as a drop down say Dropdown A.
I created that field column on LIst 1 as a text. When i add that field on the form how can i use it as a drop down for dynamic display of unique values from Column X of my excel file.
 
Query 2
Once I select an option from the first dynamic dropdown i want a similar display of another dropdown that would be conditional on the selection of the first dropdown
for example if i select A in the dropdown A, the second dropdown B will display all unique values related to A, if i do multiple selections in Dropdown A, it should show all unique values associated with the selected values in Dropdown A, in Dropdown B
 
Query 3
once these selections are done and i submit the form, the values so selected in both dropdowns are updated in Columns X and T of LIst 1
 
Any help would be appreciated.
Thanks
I have the same question (0)
  • Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at
    You can try filtering a dropdown on a form by unlocking the control in the advanced tab, then editing the Items property.  You can use a Filter function.

    Example:
    Filter(Choices([@'Approval Items'].'Choice Column'),cmb_filter_value.Selected.Value in Value)
    Here I'm filtering the choices available to select by whatever value is selected in the combobox called "cmb_filter_value".  You could change this to reference a value selected in a DataCardValue of another form if you wanted to.



    Here I filter only choice options that contain a "3"

    If I select an A from the first combobox, I filter the available options on the choice column to only those that contain an A




    Just FYI I've found that submitting Forms can get a little tricky when you start customizing the cards on forms to do things like this, I prefer to just build my own forms with individual controls and use a "Patch()" function to save the data reliably.
     
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Using an Excel spreadsheet that you continually update can become problematic. If someone modifies the spreadsheet without observing the table range or if existing data is mistakenly altered such as the generated key, then you have a data integrity problem. Excel also has a maximum limit of 2000 rows for use with Power Apps.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard