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 Apps
Answered

Dropdown Value

(0) ShareShare
ReportReport
Posted on by 58

Hi guys,

I have been trying to create a user form . I have two drop down fields named Portfolio_level and portfolio_input were portfolio_level has items called ["Country","Region","Global"] . I am suppose to the get the values from a share point list REGION_COUNTRY when i choose any item from portfolio_level. For eg - if i choose region from portfolio_level i need to get all the region from the share point list(REGION_COUNTRY) and displayed as drop down in portfolio_input

 

When i try to do the same thing i get below error in update.

PIC 1PIC 1PIC 2PIC 2

Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    Looking at your formula, you are not setting the items correctly. Your if statement is right, but after If(Datacard.....Selected.Value=Country, 

     

    It should be Filter(Region_Country,Country=X,Region)

     

    (assuming you want to filter to the region country  records where the country is a certain country and display those regions

  • rohitsekar1996 Profile Picture
    58 on at

    thanks for the suggestion, but i do not want my region to populate based on the country selection. I just need my country and region values from share point to be populated in the portfolio_input field when i choose the region from the portfolio_level and the same of country . so for example if i select the country from the portfolio_level field i need all country to be populated from share point list

     

  • Joel CustomerEffective Profile Picture
    3,224 on at

    just giving you a suggestion to get past the 2,000 item delegation limit. Your approach would work as long as it doesn't go over 2,000 records.

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @rohitsekar1996 ,

     

    I just want to confirm what's data type of portfolio_input column in sharepoint? Is it single line of text type?

    If so, what you need to modify is to unify the two column names as the drop-down field only recognizes one column name.

    Try to modify the Items property as follows.

    If(DataCardValue3.Selected.Value="Country",RenameColumns(REGION_COUNTRY.COUNTRY_DISPLAY,"COUNTRY_DISPLAY","Value"),RenameColumns(REGION_COUNTRY.REGION,"REGION","Value"))

    Then set the Update property as follows.

    DataCardValue4.Selected.Value

    Hope this helps.

    Sik 

  • rohitsekar1996 Profile Picture
    58 on at

    thanks for you answer works perfectly ,Is there anyway to apply distinct function in the if condition since region,country contain some duplicate values.

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @rohitsekar1996 ,

     

    Of course, Distinct() function returns Result,  unifying the column names at the same time. 

    Try to modify the Items property of Dropdown as follows.

    If(
    DataCardValue3.Selected.Value="Country",
    Distinct(REGION_COUNTRY,COUNTRY_DISPLAY),
    Distinct(REGION_COUNTRY,REGION)
    )

    Then set the Update property as follows.

    DataCardValue4.Selected.Result

     Hope this helps.

    Sik

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard