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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Custom Report Layouts

(3) ShareShare
ReportReport
Posted on by 448
Hello,
 
I need to add a column that shows the VAT amount of the line, I have highlighted it in green in the screenshot. I have tried to add line >VAT Amount line>VATAmount_VatAmountLine using the Plain text optoin, but nothing gets populated. Please can someone advise on what field to add how I would do this. 
Thanks
I have the same question (0)
  • Verified answer
    Grigorios Mavrogeorgis Profile Picture
    3,120 Super User 2026 Season 2 on at
    Hi, that field won't work there because VATAmount_VatAmountLine sits on the VATAmountLine dataitem, that's the temp table grouped by VAT %, one row per VAT group at the bottom, not one row per invoice line. Word can't merge a field from a different repeating group into your Lines table, so it stays blank.

    There isn't a native per-line VAT Amount field in that dataset, on purpose I think, BC calculates VAT off the subtotal per VAT group to avoid the line-by-line total not matching the document total after rounding. If you want it per line anyway you'd need to extend the report in AL, add a column on the Lines dataitem doing the calc yourself, something like Amount times "VAT %" divided by 100, watch the rounding, then it shows up in the Word field picker after you publish.
     
    Glad to help - follow up if anything is unclear.  
    â–º  If this solved it, marking it verified helps others too.      
    Regards,
    Grigorios Mavrogeorgis
    Business Central Consultant & AL Developer

    Work: Gmsoft Limited
    Blog:  insidebusinesscentral
    LinkedIn: linkedin.com/in/gregorymavrogeorgis

     
  • Verified answer
    YUN ZHU Profile Picture
    102,843 Super User 2026 Season 2 on at
    You can calculate this using the following two fields; while the result may not be entirely precise, it allows you to obtain a value.
     
    Thanks
    ZHU
  • Verified answer
    OussamaSabbouh Profile Picture
    18,896 Super User 2026 Season 2 on at
    Hello,
    VATAmount_VATAmountLine comes from the VAT Amount Line dataset, which is normally used for VAT totals grouped by VAT percentage, not for each individual document line, so placing it inside the line repeater can return blank or incorrect values. For a VAT amount per line, the report dataset must contain a column calculated from the document line, typically Amount Including VAT - Amount; if that column is not already available, a developer must add it through a report extension and then map that new field inside the same line repeater in the Word layout.
    Regards,
    Oussama Sabbouh
  • INITMAN007 Profile Picture
    448 on at
    Thank you to all that have replied. To clarify, I cannot move the filed as shown in the below screen shot due to the fact that they are two different data sets? Thank you
     
  • Suggested answer
    YUN ZHU Profile Picture
    102,843 Super User 2026 Season 2 on at
    If they are not within the same DataItem, it means they do not belong to the same Group; this requires a redesign of the Group configuration in Layout file.
     
    Thanks.
    ZHU

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 551 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 372 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 339 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans