Greetings,
I am wanting to create a collection referencing the indexed column (WorkYear) of a SP list and would like to include "* All" in the collection (to be used in a filter dropdown). The formulas I have tried are below. This is collecting the work years; however, "* All" is not being added to the collection. The WorkYear column in SharePoint is a single line of text field, not date or numeric.
Formula1
ClearCollect( colWorkYear, Distinct( SharePointListName.Work_x0020_Year,Work_x0020_Year), Collect( colWorkYear, {Result: "* All"}))
Formula2:
ClearCollect( colWorkYear, Distinct( SharePointListName.Work_x0020_Year), Collect( colWorkYear, {Result: "* All"}))
Solved! Go to Solution.
Here is a formula that works for me:
ClearCollect(colWorkYear, Distinct(SharePointListName, Work_x0020_Year)); Collect(colWorkYear, {Result:"* All"})
Here is a formula that works for me:
ClearCollect(colWorkYear, Distinct(SharePointListName, Work_x0020_Year)); Collect(colWorkYear, {Result:"* All"})
Thanks @Jeff_Thorpe - missed it by that much :).
Your solution works great.
Is it basically one in the same to reference an SP index and SharePoint column?
Thanks!
Is SP Index is referring to index columns in a list? In general not all columns are index in a list and they don't need to be in order to use them in PowerApps. For larger lists where you are going to be using filter/lookup functions then you might want to index the columns that are being used in the filter/lookup to help with performance and the list view threshold if the list is over 5k items.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
202 | |
176 | |
62 | |
32 | |
30 |
User | Count |
---|---|
325 | |
268 | |
104 | |
74 | |
56 |