cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
H_a_l
Level: Powered On

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 Team
Community Support Team

Re: Filter by version number

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,284)