cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bpplls
Helper II
Helper II

Display Filtered Values by Unique Text

Hi, I have a dropdown 

 

called, DropdownID1 that has 2 values

bpplls_0-1659044221350.png

 

and I have another dropdown called Dropdown2 that has been filtered by the selected value of DropdownID1

and this is the code I used.

 

Proper(Filter(container.key, EndsWith(key, DropdownID1.SelectedText.Result)))

 

Dropdown2

bpplls_1-1659045035650.png

 

Question is how can I display only the "Testche" value on the the Dropdown2?

 

 

Thank you in advance!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@bpplls 

Please try the following,

With({myRecords: Proper(Filter(container.key, EndsWith(key, DropdownID1.SelectedText.Result)))},
	ForAll(myRecords, Left(ThisRecord.key ,Match(ThisRecord.key ,"-").StartMatch-1))
)

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

View solution in original post

3 REPLIES 3
CNT
Super User
Super User

@bpplls 

Please try the following,

With({myRecords: Proper(Filter(container.key, EndsWith(key, DropdownID1.SelectedText.Result)))},
	ForAll(myRecords, Left(ThisRecord.key ,Match(ThisRecord.key ,"-").StartMatch-1))
)

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

Thank you for your help! It widens my knowledge on With function. 100% helpful

@bpplls 

Glad to help!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,283)