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 / list item based on if ...
Power Apps
Answered

list item based on if condition part II

(0) ShareShare
ReportReport
Posted on by 53

In a DataCard called COMPANY, I have a dropdown list with two options, A and B. I want the DataCard called DETAIL to display a dependent list based on what is selected in COMPANY. Here is an image how the column was setup in Sharepoint

949184_soy_0-1695248656514.png

 

 

For example, if I select A, I want the options to be A1, A2, and A3, and if I select B in COMPANY, I want the options to be B1, B2, and B3.

 

I understand that this is possible by using a conditional statement in the Items property of the DETAIL cell. In this case I prefer to use a formula rather than an Excel File with the data. It is similar to this response.

 

I was trying with this formula: If(DataCardValue107.Selected.Value = "A", ["A1“; "A2“; "A3"], ["B1“; "B2“; "B3"]), but I got an error. 

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @949184_soy , your formula looks correct to me. I am not clear on what the data type is for the Detail field (or whether it is a custom data card in your Form), but you should be applying your formula to the Items property of the Dropdown control:

     

    If(
     DataCardValue107.Selected.Value = "A",
     [
     "A1",
     "A2",
     "A3"
     ],
     [
     "B1",
     "B2",
     "B3"
     ]
    )
    

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard