cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Filter by version number

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.

 

1 REPLY 1
Community Support
Community Support

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (77,680)