cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tapesh
Post Prodigy
Post Prodigy

How to get the specific record using a choice column (no Blanks) from sharepoint list and Text column/Id and group into one?

HI All Experts. 

I have been facing an issue sorting the records with a specific keyword and choice column from the SharePoint list.  I have a list that has one choice column called as "UnitName" (shown in image below ), and a text column which is "CutomerApp_Id", I can filter the records with customer ID to drill down to see a specific record from the list, however when I select a "Unit Name" it only shows a single row and not all which contains customer app ID. 

I want to show all the records with the corresponding customer ID even when a user selects one Unit name. 
Please have a look at the screenshot below for a proper example of how my SharePoint list looks. 

Tapesh_0-1625473644920.png

Any Idea if this is posible ? I guess it can be done using a group by function and add column but not sure how. 
Thanks for taking the time to read, I really appreciate the effort. 


Regards
Tapesh 
@WarrenBelz @RandyHayes @Pstork1 

1 ACCEPTED SOLUTION

Accepted Solutions
Tapesh
Post Prodigy
Post Prodigy

I guess I have found the solution to this:

First Create a collection of required column:

Clear(DistData ); 
 Collect(DistData,  Distinct(Filter ('SpListName', !IsBlank('ChoiceColumn'.Value )).'ChoiceColumn', 'ChoiceColumn'.Value ))

Next: Use this as a dropdown or text or whatever field you want.
I used DropDown and the result is below 

Tapesh_0-1625494449602.png

Then set the variable using onChange Property to the choice column selected item 

Set (TempGalData, Filter(GalData,  Dropdown2.Selected.Result exactin 'choiceColumnName'.Value).Customer_AppId)

and On the main gallery when you want to filter the records select item property and add search/filter function as per need. 

Filter(GalData, Customer_AppId exactin TempGalData.Customer_AppId   )


Final Result:

Tapesh_1-1625494696621.png

 






 

View solution in original post

2 REPLIES 2
Tapesh
Post Prodigy
Post Prodigy

I guess I have found the solution to this:

First Create a collection of required column:

Clear(DistData ); 
 Collect(DistData,  Distinct(Filter ('SpListName', !IsBlank('ChoiceColumn'.Value )).'ChoiceColumn', 'ChoiceColumn'.Value ))

Next: Use this as a dropdown or text or whatever field you want.
I used DropDown and the result is below 

Tapesh_0-1625494449602.png

Then set the variable using onChange Property to the choice column selected item 

Set (TempGalData, Filter(GalData,  Dropdown2.Selected.Result exactin 'choiceColumnName'.Value).Customer_AppId)

and On the main gallery when you want to filter the records select item property and add search/filter function as per need. 

Filter(GalData, Customer_AppId exactin TempGalData.Customer_AppId   )


Final Result:

Tapesh_1-1625494696621.png

 






 

View solution in original post

Mari
Community Support
Community Support

Thanks for sharing your findings!

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,282)