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 / Dropdown not showing c...
Power Apps
Answered

Dropdown not showing correct value in edit screen

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I've setup a dropdown which references a separate table in my DB which holds the following data:

 

  • LegendCode - this holds a 3 digit code stored as a text in my db.
  • LegendDesc - this holds a more user friendly concatenation of the 3 digit code and a description of what the code represents, again stored as text in my db.
  • Order - just a column to allow me to manually order my values in the dropdown, stored as integers in my db.

 

Now in my dropdown control the datacard.Items value field is set to LegendDesc, nice for users. When an option is selected and the form updated, the value passed to my form results DB table is the LegendCode value.

 

The problem I have is when I go to edit the form, I have the values load fine except the dropdown which defaults to the first value of the LegendDesc. Dropdown values are fine in other sheets with hand entered values, but this one doesn't seem to play nice. I've tried this formula in the Default: 

 

  • LookUp('[Access].[type_strata]',ThisItem.StrataLegend=LegendCode,LegendDesc)

 

And also tried a slight variation:

 

  • LookUp('[Access].[type_strata]',LegendCode=ThisItem.StrataLegend,LegendDesc)

 

Both make no difference. Has anyone else experienced this and found a way round it?

 

Untitled.jpg

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I've been trying variables as reading other threads this seems to be the most likely solution but am getting a bit lost how I would assign a value to the dropdown.

  • hpkeong Profile Picture
    2,944 on at

    Hi @Anonymous

     

    Just pointing directly towards your Dropdown creation.

    Dropdown needs data in Table, Not a single value.

    (It is similar to that og Gallery, ListBox)

    So, LookUp(..) returns only SINGLE Value. You can;t use LookUp with Dropdown.

     

    Please use:

    - Distinct

    - Filter.

     

    In your example, it should be Filter

     

    Otherwise, you should use TextBox to display single value results with LookUp.

     

    Hope this clarifies the formula.

    Correct me if I am wrong in interpreting your Question.

     

    Have a nice day.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you hpkeong, but i think i may have not explained things fully. 

     

    But i have managed to solve my problem, in the Default of the dropdown card I used the following formula:

     

    LookUp('[Access].[type_strata]',LegendCode=StrataLegend,LegendDesc)

     

    I think i'd stupidly gotten confused with the similar naming of my columns in the database.

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

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard