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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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?

(0) ShareShare
ReportReport
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
    Bilal Haider Profile Picture
    487 on at

    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.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    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.

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 796 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans