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 / 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,709 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard