Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How do I combine two or more rows with the same data of row into one row?

Posted on by 94

Hi Guys,

I'm looking for help on how to combine two or more rows with the same data of row into one row.

For example, suppose I have two rows with the same Type and same No. in sales invoice line then I want to sum up the quantity into one row.

Does anyone know how I can do this? 

pastedimage1679059265019v1.png

Thanks

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How do I combine two or more rows with the same data of row into one row?

    If you do not want to do this manually, then the other option is to create some code that loops through the sales lines and do the process for you.

    The code for it is not so complicated but there is a lot of checks you need to do when it comes to quantity, prices etc.

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 45 on at
    RE: How do I combine two or more rows with the same data of row into one row?

    Hi,

    Not standard function as per my knowledge.

    If one of the line has no quantity posted then you can delete one line and put the quantity in the other line.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans