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 / Issue in power FX func...
Power Apps
Answered

Issue in power FX function

(1) ShareShare
ReportReport
Posted on by 8

Hi All,

I am new to power apps I am designing a app there are four columns Business Line,Country,Region,State.

Business Line and Country is dependent on each other when any business line is selected it should show the country related to specific business line.Meanwhile Region and State is dependent on each other when any Region is selected it should show the State related to specific Region.(cascading dropdowns)

Example :(4 columns-Business Line,Country,Region,State)

BusinessLine    Country    Region    State

Metals                Finland     Asia        Bihar

Metals                Austria      Europe   Paris

Metals                Germany    Europe   Paris    

Data Center        Finland      Europe    Bihar

Data Center          UK           Asia         Paris

Data Center        Germany     Asia        Bihar

If I select any BusinessLine  it is showing the Country associated with that BusinessLine. Now if I select any region it is not showing the state associated with that Region.Please help All suggestions are welcome.Thank you in advance!!

Regards,

Anony_mous

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,705 Most Valuable Professional on at

    Hi @Anon_ymous21,

     

    Let's assume your 4-column collection is called colBusinessLines, and your cascading dropdown controls are named drpBusinessLine, drpCountry, drpRegion, and drpState. Try setting the following properties - this is a starting point, you may need some trial-and-error.

     

    drpBusinessLine Items property:

     

    SortByColumns(
     Distinct(colBusinessLines, BusinessLine),
     "Value"
    )

     

     

    drpCountry Items property:

     

    SortByColumns(
     Distinct(
     Filter(colBusinessLines, BusinessLine = drpBusinessLine.Selected.Value),
     Country
     ),
     "Value"
    )

     

     

    drpRegion Items property:

     

    SortByColumns(
     Distinct(
     Filter(colBusinessLines, Country = drpCountry.Selected.Value),
     Region
     ),
     "Value"
    )

     

     

    drpState Items property:

     

    SortByColumns(
     Distinct(
     Filter(colBusinessLines, Region = drpRegion.Selected.Value),
     State
     ),
     "Value"
    )

     


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard