I have a gallery called
glry_ReworkData
I have a label called "lbl_ID" this has the ID for the datasource descending.
that label references a field called - OLD_RW_ID in the datasource.
What I need: i need to reference this value
I need the value 95.2 to show in a Label. on my form.
How do i get the Max value from that gallery from
Thanks Dave
Hi @boom_powerapps,
It might be better for you to raise a new post as you may get a better response.
The high level approach is to sort the data source or the gallery AllItems by the numeric column in descending order by calling the Sort function. You would then call the First function to retrieve the row and to access the associated text column.
Thank you both very very much !!
Hi @Anonymous,
Try the Max() function. Below you'll find an example using the gallery name and text field or using the data source and column name:
//Gallery + control (change to correct names)
Max(Gallery1.AllItems, Value(Subtitle1.Text))
//Data source + column name
Max(TableName, ColumnName)
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
Hi @Anonymous
This should return the maximum value from your gallery:
Max(glry_ReworkData.AllItems,
Value(lbl_ID.Text)
)
WarrenBelz
146,601
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,942
Most Valuable Professional