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 / Default Value for Allo...
Power Apps
Unanswered

Default Value for Allowed Values always defaults to wrong value

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I'm not sure if I am just missing something obvious, but I can't seem to find anything about this issue. 

I have a dropdown of allowed values here is a breakdown of how it is set up: 

AllowedValues: Distinct(Facility, abbr) 

Update: LookUp(Facility,Text(DataCardValue12_1.Selected.Value)=abbr).Id

Default: ThisItem.FacilityId

Form Item: Gallery3.Selected

 

Gallery 3 is selecting an item that has a Facility of "MOC", but on the drop down of allowed values on my edit form it always shows "ISCO" no matter what the actual value is. I need it to default to the current value. This sheet is for editing an existing record. Currently, if I open an item from "MOC" to change it's purchase amount, but don't notice the Facility dropdown changed to "ISCO" then when I submit it will change values I am not wanting changed. 

 

Maybe I am misunderstood, but I believed that the form's "item" being whatever record gallery3 selected meant that "ThisItem" is now that item, and therefore it should be showing the correct value if my default is "ThisItem.FacilityId"

 

Something I tried to resolve this was to use this as the default: LookUp(Facility,ThisItem.FacilityId=Id).abbr

Since I want the displayed value to be the site abbreviation and not the ID, but then it says "MOC" cannot be converted to a number. 

 

I think it is important to point out if it wasn't obvious from the code that I am wanting the values that are displayed to be the matching names from the facility dimension table, but the field being changed is the facilityid field in the asset table. 

 

Any help is greatly appreciated.

Thanks!

Categories:
  • lupusamare Profile Picture
    2 on at

    I have got the dropdown showing the correct value now, but now even if I change the value of the dropdown and submit the form it will always take the default value. 

    This is what I used for the Default on the DataCardValue: LookUp(Facility, Parent.Default=Id).

    Below are snips of the form, DataCard, and DataCardValue of one field.:

    lupusamare_0-1681305343122.png

    lupusamare_1-1681305418040.pnglupusamare_2-1681305433814.png

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard