I created a "List" in my SharePoint called "Contracts". There are different suppliers that belong to the same "Title".
However, when comes to PowerApps, how can I use a "Gallery" to filter another Gallery by the "Title". But these Galleries are belong to the same "List". I would like to have a left Gallery as a "Filter" for the right Gallery to display the "Suppliers" that categories by the Title.
Regards,
Kentgladwin
Solved! Go to Solution.
Hi @Kentgladwin99 ,
OK, let's simplify the issue.
1. set the LeftGallery Items property: Contracts
2. set the RightGallery Items property: Filter(Contracts,Title=LeftGallery.Selected.Title)
Then it should work as your expectation.
Sik
This post would address your issue:
https://powerusers.microsoft.com/t5/Building-Power-Apps/IS-IT-POSSIBLE-TO-SHOW-AN-ITEM-FROM-A-SAME-D...
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution
Hi @Kentgladwin99 ,
Could you please share more information about your list construct? what is the type of Suppliers column?
You want the left gallery to show Title column, right?
If there are a lot of repeating values in Title column, please try this to LeftGallery Items property:
Distinct(Contracts, Title)
and set RightGallery Items property:
Filter(Contracts,Title=LeftGallery.Selected.Result)
Test Result:
Hope this helps,
Sik
Hi @v-siky-msft
Thank you for the message. The structure you demonstrated is exactly what I am looking for.
These are the columns in my "List - Contracts":
.Title (Text)
.Suppliers (Text)
.Services(Text)
.StartDate (Date)
.EndDate (Date)
For the left Gallery, Title will be the main item to filter the Gallery on the right.
For the right Gallery, .Suppliers & .Services are displaying as the Title and Subtitle on the Gallery.
However, the code you are using to displaying the result, how would I relate them to my scenario?
Thank you @v-siky-msft
Regards,
Kentgladwin
Hi @Kentgladwin99 ,
OK, let's simplify the issue.
1. set the LeftGallery Items property: Contracts
2. set the RightGallery Items property: Filter(Contracts,Title=LeftGallery.Selected.Title)
Then it should work as your expectation.
Sik
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
52 | |
51 | |
36 | |
33 |
User | Count |
---|---|
283 | |
97 | |
90 | |
82 | |
77 |