how to get maximum of another column for a grouped column

Masoud Sedighi 21 Reputation points
2022-12-24T20:22:47.743+00:00

Hello

in my SharePoint list I have below columns and meta data:

Doc No      Rev
Doc-0001     00
Doc-0001     01
Doc-0001     02
Doc-0002     00
Doc-0002     01

Now I want below to result in the view or query, that added another column that show maximum Rev for each Doc No

Doc No      Rev Maximum Rev

Doc-0001     00 02
Doc-0001     01      02
Doc-0001     02      02
Doc-0002     00      01
Doc-0002     01      01

I am using SharePoint 2013.

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,629 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 27,266 Reputation points Microsoft Vendor
    2022-12-26T08:14:23.2+00:00

    Hi @Masoud Sedighi ,
    I read your requirement carefully, you want to auto populate maximum Rev value per Doc No in one sharepoint list column.
    Unfortunately, per my knowledge, we can't achieve this function, we can't compare values in the same column, only with other columns. Thank you for your understanding and support.
    Or you can create a view to sort them group by Doc No and maximum Rev, do you think this is feasible(As shown below)?
    273993-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.