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 / SharePoint List Item F...
Power Apps
Unanswered

SharePoint List Item Filtering According To Another List Item With PowerApps

(0) ShareShare
ReportReport
Posted on by 79

Please refer to the below details for the issue that I'm looking for a solution to.

  1. I have two SharePoint Lists A. Client Info - This list is customised using Microsoft PowerApps.

     I. Title
     II. Requestor
     III. Country
     IV. States
     

    B. Country VS States

     I. Title
     II. Country
     III. State
     IV. Postal Code
     
  2. I want to populate the 'Client Info - States column' using the 'Country VS States - State' column.

  3. In order to get it done, I have linked the 'Country VS States' list to 'Client Info'. I have done this using PowerApps's 'Add Data' - Data connection option.

The data connection works fine and the 'States' field in the 'Client Info' list (List 01), is populated with all the 'States' that are available in the 'Country VS States' (List 02).

  1. What I would like to have is if a user selects a 'Country' from 'Client Info', then the user should see only the states that belong to that country. Please see the below example formula.

    If(List01.Country==List02.Country) Then List01.States=List02.State

I can't understand how to give this formula in the 'PowerApps Formula Bar'.

I have used Microsoft InfoPath 2013 in SharePoint 2013 using Rules to do the same thing.

Please let me know your solutions.

Kind regards,
Chiranthaka

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @chiranjay ,

    You did not say how the user was selecting the Country, but a list of States belonging to the selection would be

    Filter(
     'Country VS States',
     Country = YourSelectedCountry
    ).State

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @chiranjay ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • ChiranJay Profile Picture
    79 on at

    Thanks, @WarrenBelz for the tip. However I have added more info below. Please refer to them and kindly show me how to resolve my issue.

     

    The country will be selected using a combo box named 'DataCard16' --> 'cmbCountry' and the filetred 'states' should be populated in 'DataCardValue17' --> 'cmbStates'.

     

    Regards,
    Chiranthaka

  • ChiranJay Profile Picture
    79 on at

    Thanks, @WarrenBelz for the tip. However I have added more info below. Please refer to them and kindly show me how to resolve my issue.

     

    The country will be selected using a combo box named 'DataCard16' --> 'cmbCountry' and the filetred 'states' should be populated in 'DataCardValue17' --> 'cmbStates'.


    Regards,
    Chiranthaka

  • ChiranJay Profile Picture
    79 on at

    Thanks, @WarrenBelz for the tip. However I have added more info below. Please refer to them and kindly show me how to resolve my issue.

     

    The country will be selected using a combo box named 'DataCard16' --> 'cmbCountry' and the filetred 'states' should be populated in 'DataCardValue17' --> 'cmbStates'.


    Regards,
    Chiranthaka

  • Verified answer
    WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @chiranjay ,

    As I posted - the Items of cmbStates would be (assuming the output of cmbCountry here)

    Filter(
     'Country VS States',
     Country = cmbCountry.Selected.Country
    ).State

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @chiranjay ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard