Hello,
I am trying to find a way to filter by version number using a SharePoint List (library in this case) as a source presented in a gallery.
As version number is not visible through the gallery column picker I have added a calculated column to extract the version number which is in turn visible.
I would like to filter for items at various states in the lifecycle
i.e, Netnew = version 0.1
Draft = > 0.1
Major version = integer
I have tried setting the "calculatedversion" column to text and number, text works but then I would need to filter against a long array (or collection). Using even a short array here has a performance impact.
In the end I need to allow a user to select a state using a button lets say and change the filter.
ie, "New" Button, "Draft" Button"
For this I have used a collection to store the filter value
ClearCollect(PageFilter,{Filter : "0.1"})
In Essense
Hit the new button change the filter value and update the gallery.
Filter(Library, CalculatedVersion = (PageFilter.Filter)
Trying to take this one step at time and get past the version filter first.
This could also work with the content approval "Approval Status" but this is not presented or a column you can calculated on.
Anythought or insight would be helpful
Thank you for your time.
Hi @H_a_l,
By saying version number, do you mean the version history of the files in Document Library?
There is an idea submitted on this(for Version history):
Show all versions of a listItem of a sharepoint-List
For Approval status, just as you mentioned, currently this is not supported, a workable way is to add a text field to Approve the item manually. Then use that to do the filter in PowerApps.
Regards,
Michael
User | Count |
---|---|
177 | |
118 | |
88 | |
44 | |
41 |
User | Count |
---|---|
241 | |
153 | |
127 | |
77 | |
72 |