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 Value pre pop...
Power Apps
Answered

dropdown Value pre populate in new form

(0) ShareShare
ReportReport
Posted on by

Hi

 

 I have a dropdown in my new form where Iam trying to update DSI ,

 

  Items Property  : Choices([@Causes_TopRisks].Risk_name)

 

Default Selected Items  : 
If(VarTopRiskCauses,LookUp(Choices(Causes_TopRisks.Risk_name), Value = VarTopITrisknames),Parent.Default)

VarTopRiskCauses is a variable which Iam passing to check whether it is true or not
VarTopITrisknames Iam already collecting the risk Name as Variable ( tested in a label property)

Risk_name is a lookup column in my SharePoint list

 

It is showing an error expected table value.

 

Danny_Dicaprio_0-1709037865111.png

 

  Could anyone please help me to fix this issue 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Danny_Dicaprio ,

     

    Please try this:

    If(VarTopRiskCauses,[LookUp(Choices(Causes_TopRisks.Risk_name), Value = VarTopITrisknames)],Parent.Default)

     

    Best regards,

    Rimmon

  • Danny_Dicaprio Profile Picture
    on at

     @v-mengmli-msft 

     

    Thanks for the response that worked  perfectly fine 

     

    Could you please exlain why those [ ] fields bring table value in my formula 

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Danny_Dicaprio ,

     

    The error shows the field expects a table, but lookup function returns a record, so we need to use [ ] outside lookup function to convert record to table.

     

    Best regards,

    Rimmon

  • Danny_Dicaprio Profile Picture
    on at

    Hi @v-mengmli-msft 

     

    HI can you please look into one more issue I had with same 

     

    I am storing the impact value as variable first  

     

    ThisItem.Impact * 100 & "%"

    Set(Varimpactpercentage,ThisItem.Impact)

     

    Danny_Dicaprio_0-1709048348774.png

    Danny_Dicaprio_3-1709048863811.png

     

     

    I want to update these impact in another gallery ( different sharepoint list ) where I have a lookup column for the impact from the current list 

     

     so in the new form , 

    I have updated the DSI as

    If(VarTopRiskCauseControls,LookUp(Choices(Linked_Risks_Causes_Controls.Cause_x003a__x0020_Impact),Value =Varimpactpercentage),Parent.Default)

    item property 

    Danny_Dicaprio_2-1709048769093.png

     

     

    Danny_Dicaprio_1-1709048728883.png

     

     

     could you please let me know how to fix this issue 

     

     

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard