web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Find and store max val...
Power Apps
Answered

Find and store max value from a table - Need help finding the error

(0) ShareShare
ReportReport
Posted on by 33

Hi, I have a problem with a formula. 

 

The problem is not, that I use ; instead of ,  - that's because of the german syntax layout 😄

 

The formula filters the data in the "FAQ Technic" table to return only the rows in which the value in the "E1" column corresponds to the value in the "crd55_e1" column of the selected item in the "FAQ Catalog" gallery. The filtered rows are then sorted in descending order according to the "E2_ID_Last_Item" column. The first row of the sorted data set is then selected with the LookUp function and the value in the "E2_ID_Last_Item" column is saved in the "filtermax" variable.

 

 

 

set(filtermax; LookUp(SortByColumns(Filter('FAQ Technic'; E1='FAQ Katalog'.Selected.crd55_e1); "E2_ID_Last_Item"; Descending); true).E2_ID_Last_Item);;

 

 

 

It seems something off with the syntax in itself. Maybe there is also another better solution to achieve this. 

Do you have a hint for me?

 

 

Categories:
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @LSB - I think the below is what you're trying to do?

     

    Set(
     filtermax;
     First(
     Sort(
     Filter(
     'FAQ Technic';
     E1='FAQ Katalog'.Selected.crd55_e1
     );
     "E2_ID_Last_Item";
     SortOrder.Descending
     )
     )."E2_ID_Last_Item"
    )
  • Vaish123 Profile Picture
    136 on at

    Set(filtermax; LookUp(SortByColumns(Filter('FAQ Technic'; E1 = 'FAQ Katalog'.Selected.crd55_e1);
    "E2_ID_Last_Item";Descending);true).E2_ID_Last_Item);

  • Vaish123 Profile Picture
    136 on at

    Set( filtermax, LookUp( SortByColumns( Filter( 'FAQ Technic', E1 = 'FAQ Catalog'.Selected.crd55_e1 ), "E2_ID_Last_Item", Descending ), true ).E2_ID_Last_Item )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard