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 / Populating a SharePoin...
Power Apps
Unanswered

Populating a SharePoint choice column with a value based on the selection in another choice column

(0) ShareShare
ReportReport
Posted on by 244

I could have sworn I knew how to do this... but it isn't working and I'm not sure what I'm doing wrong.

 

I have two SharePoint single-select Choice columns on my Power Apps Edit Form.

 

All I want is for the 2nd choice column to auto-populate Yes or No, depending on what is selected in the 1st choice column.

 

For example:

1st: A, B, C

2nd: Yes, No

If A or B selected in 1st, 2nd should be No. If C is selected, 2nd should be Yes.

 

This is what I put in the 2nd choice column value's DefaultSelectedItems box:

 

If((DataCardValue34.Selected.Value = "A" || DataCardValue34.Selected.Value = "B", "No", "Yes")
Categories:
I have the same question (0)
  • Verified answer
    BhaskarDhone Profile Picture
    1,392 Super User 2025 Season 2 on at

    Try this.

    If(
     DataCardValue34.Selected.Value = "A" || DataCardValue34.Selected.Value = "B",
     { Value: "No" },
     { Value: "Yes" }
    )
  • axray Profile Picture
    244 on at

    @BhaskarDhone This worked - thank you so much!!! 👏

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard