Skip to main content
Business Central forum
Suggested answer

Filter on highest value in a list.

editSubscribe (0) ShareShare
ReportReport
Posted on by 40

Hi,

I would like to add a filter in Business Central which will only show the hightest value of a column.

So, for example you have the values 3, 5 and 10. I only want to display the lines with the value 10.

Thanks in advance.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,978 Super User on at
    RE: Filter on highest value in a list.

    Hi, The method mentioned by Manan is the easiest way.

    More Details: How to set and change the default sort order of a page

    https://yzhums.com/13922/

    If this does not satisfy you, customization is required.

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Manan_Shah Profile Picture
    Manan_Shah 1,457 on at
    RE: Filter on highest value in a list.

    Hi TomRoskam,

    I think you can create filter on Page and save it. 

    For example I want to see Item with highest in Inventory. 

    1) On Item list page click on inventory column click on dropdown arrow, then click on Descending. then system will sort the item list base upon highest Inventory. 

    pastedimage1670312537442v1.png

    2) Now need to save this view so when user will open this page they can see highest value item 1st. To Save View click on 3 dots on Filter fact box and Save it. 

    pastedimage1670312646623v2.png


    Hope this will help.

    Many Thanks,
    Manan

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,180 Super User on at
    RE: Filter on highest value in a list.

    hi

    yes exactly

    check my answer if it helped you, thanks

    DAniele

  • TomRoskam Profile Picture
    TomRoskam 40 on at
    RE: Filter on highest value in a list.

    Ah sorry, I had to specify that! I am actually trying to do it via the client. Would be great if there is a way to do that. If not, an extra filter needs to be created via the code.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,180 Super User on at
    RE: Filter on highest value in a list.

    hello

    I did not understand whether you want to get the result from the client directly or from A/L code

    anyway, in A/L there is the GETRANGEMAX function:

    learn.microsoft.com/.../record-getrangemax-method

    check my answer if it helped you, thanks

    DAniele

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,066 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,585 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans