cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
H_a_l
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
v-micsh-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (15,429)