Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Update Formula to Only Show Specific Loctations Based on Hierarchy

(0) ShareShare
ReportReport
Posted on by 4,704 Super User 2025 Season 1

I had a formula that has been updated (thank you @WarrenBelz ). 

 

Sort(

   Filter(

      ParkListCollection,

      varIsProgramHierarchy = "National" || Park=varParkAlpha

   ),

   Park
)

 

I've considered anew my desired outcome; it is - If User heirarchy equals 'Region' that User can only see parks in their region in the Combo Box. Everyone else can see all Parks. 

 

Additional:

1. The 'Member List' and 'Park List' have columns titled 'Park' and 'Region'. A park could be 'Park A', 'Park B', 'Park C'. Each park could be in a different 'Region'

Region is used twice in this database 1) as a location identifier; 2) as a designated 'ProgramHeirarchy'; they are unrelated. A region name could be 'East', 'West', 'South', etc; while a park is could be 'Park A' or 'Park B', and one park could be in 'West' region and the other in 'East' region.

2. The member 'ProgramHeirarchy' is stored in a Text column of the MemberList, along with all other member data. Member 'ProgramHeirarchy' levels are 'National', 'Region', 'Park', 'Employee'.

3. I do have a variable currently called 'varIsProgramHierarchy', the content of which displays the current user's heirarchy. If I drop a label on the screen and put 'varIsProgramHierarchy' in the Text field the content returned is 'National' - which is my ProgramHierarchy.

I also have a varible that identifies the region of the User, and I have a dropdown (on the page but not visible and supports the Combo Box, that has the User's region name in it.

 

Again, what I need is for the formula to allow all members with a heirarchy of 'Region' to see only parks in the region, and all other members able to see all parks.

Categories:

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard