cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Phineas
Post Partisan
Post Partisan

Two Condition Combo Box Search Help

On a journey for an answer...

 

Filter 1 - Returns all content no matter the user.

 

              Sort(Filter(ParkListCollection(Title=ParkAlpha), Title, Ascending)

 

Filter 2 - Returns ONLY those parks that are located in the 'region' the user is located in IF the user has a ProgramHierarchy of 'Region' (different usage than the location 'region' term?).

 

              If(varIsHierarchyRegion, Sort(Distinct(Filter(MembeList(, Region=Dropdown1.Selected.Region),Park), Result, Ascending)

 

How do I combine the two so that the logic recogizes whether the user is ProgramHierarchy 'Region' or not; if yes only show the user parks in their region; if no show all parks in every region? 

 

6 REPLIES 6
CNT
Community Champion
Community Champion

@Phineas just add your first Filter to the false part of the second. 

Phineas
Post Partisan
Post Partisan

I've attempted to do that a dozen time. Each kicks back an error. Not sure where I'm missing it.

I've attepted that a dozen times still can't get it right.

 

This returns all locations in a specific region based on the member's  region and if the member has a ProgramHierarchy of 'Region').

 

This returns all locations regardless of region, defaulting to the user's home park (required).

 

          Sort(Filter(ParkListCollection, Title=varParkAlpha), Title, Ascending)

 

Everyone of my attempts to merge the to returns and error. Any thoughts?

CNT
Community Champion
Community Champion

@Phineas Could you share a screen shot with the formula and the error.

Phineas
Post Partisan
Post Partisan

I cannot.

 

I am unable to share the site.

 

It seems to be a syntax issue; I just can't figure it out. Independently both formulas work fine. I just cannat figure out how to combine the two into one - If 'Region' then, if not then.

CNT
Community Champion
Community Champion

@Phineas I´m sorry! I can´t help to fix a formula that I can´t see. I´m not a magician!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,172)