cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Linked Dropdowns and Distinct Function

I have 2 dropdowns, namely ddCompany and ddProperty.

 

ddProperty, shows all properties for the company selected is ddCompany.

 

However, when I successfully add the distinct function to ddCompany, the formula within ddPropery no longer works.

 

Formulas before distinct
ddCompany - SortByColumns('Property Information',"ClaimantCompany")

ddProperty - Filter('Property Information',ddCompany.Selected.'Claimant Company'='Claimant Company').'Property Name'

 

ddCompany formula with Distinct

Distinct(SortByColumns('Property Information',"ClaimantCompany"),'Claimant Company')

 

Please can someone advise a way to make the ddCompany dropdown only show unique values without affecting the ddProperty dropdown.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: Linked Dropdowns and Distinct Function

Hi @SG1990 ,

See if this approach works - ddCompany

Sort(
   Distinct(
      'Property Information',
      ClaimantCompany
   ),
   Result
)

 ddProperty

Filter(
   'Property Information',
   ddCompany.Selected.Result = 'Claimant Company'
).'Claimant Company'

 

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.

View solution in original post

2 REPLIES 2
Highlighted
Community Champion
Community Champion

Re: Linked Dropdowns and Distinct Function

Hi @SG1990 ,

See if this approach works - ddCompany

Sort(
   Distinct(
      'Property Information',
      ClaimantCompany
   ),
   Result
)

 ddProperty

Filter(
   'Property Information',
   ddCompany.Selected.Result = 'Claimant Company'
).'Claimant Company'

 

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.

View solution in original post

Frequent Visitor

Re: Linked Dropdowns and Distinct Function

Thanks Warren, works a charm.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,143)