Forum Discussion

Avi65's avatar
Avi65
Brass Contributor
May 17, 2024

How to do group by on lookup column in list view

Hello Team,

 

I want to do group by in one of SharePoint List on Lookup column. I found very good article by Ganesh Sanap as mentioned below

https://ganeshsanapblogs.wordpress.com/2024/01/28/sharepoint-json-formatting-remove-column-name-from-group-header/ 

 

I tried the lookup value format as mentioned in at the end of above article, but it is not working. My Lookup column Name RD_Team_List:RESPONSABILE and as per the article I tried as "@group.RD_Team_List:RESPONSABILE.lookupValue" But it is not working as expected. List has only 1900 items.

 

Is there any other way to group by on lookup column?

 

ganeshsanap - Can you please help

  • Avi65 

     

    Are you trying to use JSON based on "main" lookup field or additional/extended lookup fields?

     

    Can you try using just this: @group.fieldData.lookupValue


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    • Avi65's avatar
      Avi65
      Brass Contributor
      I already tried it., we have multiple look up fields.
      • Avi65's avatar
        Avi65
        Brass Contributor
        IF I create single line text field and respective column formatting using json, how this can be done, is this possible?

Resources