Blog

Why Two Power BI Reports Show Different Sales Figures: Reconciling Business Central G/L Entries, Value Entries & Posting Dates

Business Central Table What It Captures What It Misses Primary Use Case
G/L Entry (Table 17) Every posted financial debit/credit on Revenue G/L accounts, including manual journals, deferrals, and freight. SKU-level item attributes, unit quantities, and customer ship-to territory granularity. Audited Income Statement (P&L) & Board Reporting.
Value Entry (Table 5802) Item-level invoiced revenue, COGS, item charges (freight/rebates), and expected vs. actual cost adjustments. Direct G/L revenue lines (services, consulting fees, manual credit memos posted to G/L accounts). Product Margin, SKU Velocity & Inventory Valuation.
Sales Invoice / Cr. Memo Lines (113 & 115) Document-level quantities, unit prices, line discounts, and G/L Account + Item lines combined. Subsequent item charge revaluations, manual G/L revenue journals, and credit memos if Table 115 is omitted. Commercial Sales Territory & Order-Level Analytics.

  • Posting Date: Determines the fiscal period in the General Ledger and Trial Balance. If a warehouse ships an order on October 31 but accounting posts the invoice on November 2 with a November 1 Posting Date, Finance recognizes it in November.
  • Document Date: Reflects the invoice header date printed for the customer (often October 31 for payment terms calculation). A sales report filtered by Document Date includes that invoice in October, creating an immediate month-end split.
  • Shipment Date: Used in warehouse operations before invoicing occurs. Filtering open or shipped-not-invoiced lines creates “phantom revenue” that has not hit G/L Account 40000 yet.

  1. Omitting Sales Credit Memo Lines (Table 115): Many BI developers connect Sales Invoice Lines (Table 113) and forget that posted credit memos live in a separate header/line table pair (Tables 114 & 115). Value Entries and G/L Entries automatically include negative credit memo amounts, making the Sales Invoice report artificially inflated.
  2. Expected Cost vs. Actual Cost in Value Entries: When “Expected Cost Posting to G/L” is enabled, shipping an item creates an interim Value Entry with Expected Cost = TRUE before the invoice posts. Summing Value Entries without filtering Sales Amount (Actual) vs. Sales Amount (Expected) mixes unbilled shipments with recognized revenue.
  3. Direct G/L Journals & Service Lines: Freight surcharges, restocking fees, or manual accruals posted directly to a Revenue G/L Account appear in G/L Entries (Table 17) but never generate an Item Value Entry (Table 5802).

Page 50150 “BI Revenue Reconciliation API”
AL Language
page 50150 "BI Revenue Reconciliation API"
{
    PageType = API;
    Caption = 'biRevenueReconciliation';
    APIPublisher = 'allgrow';
    APIGroup = 'analytics';
    APIVersion = 'v2.0';
    EntityName = 'glRevenueEntry';
    EntitySetName = 'glRevenueEntries';
    SourceTable = "G/L Entry";
    SourceTableView = where("G/L Account No." = filter('40000..49999'));
    Editable = false;

    layout
    {
        area(content)
        {
            repeater(Group)
            {
                field(entryNo; Rec."Entry No.") { Caption = 'EntryNo'; }
                field(postingDate; Rec."Posting Date") { Caption = 'PostingDate'; }
                field(documentType; Rec."Document Type") { Caption = 'DocumentType'; }
                field(documentNo; Rec."Document No.") { Caption = 'DocumentNo'; }
                field(glAccountNo; Rec."G/L Account No.") { Caption = 'GLAccountNo'; }
                field(sourceType; Rec."Source Type") { Caption = 'SourceType'; }
                field(sourceNo; Rec."Source No.") { Caption = 'SourceNo'; }
                // Invert credit-normal G/L sign so revenue is positive
                field(netRevenueAmount; -Rec.Amount) { Caption = 'NetRevenueAmount'; }
                field(globalDimension1; Rec."Global Dimension 1 Code") { Caption = 'DepartmentCode'; }
                field(globalDimension2; Rec."Global Dimension 2 Code") { Caption = 'RegionCode'; }
            }
        }
    }
}
                        

DAX Reconciliation & Variance Audit Measures
DAX
// 1. Authoritative Financial Revenue (from G/L Entries filtered to Income Accounts)
Reconciled GL Revenue = 
SUM( 'glRevenueEntries'[netRevenueAmount] )

// 2. Commercial Item Revenue (from Value Entries, excluding Expected/Unbilled)
Value Entry Item Sales = 
CALCULATE(
    SUM( 'ValueEntries'[SalesAmountActual] ),
    'ValueEntries'[ExpectedCost] = FALSE()
)

// 3. Automated Reconciliation Variance (Non-Inventory G/L Journals + Freight)
Revenue Reconciliation Variance = 
[Reconciled GL Revenue] - [Value Entry Item Sales]
                        

  1. Single Certified Semantic Model: Publish one governed Power BI Dataset (“Enterprise Commercial & Finance Core”) rather than letting each department build separate OData imports.
  2. Align Refresh Windows: If Sales refreshes every 2 hours and Finance refreshes overnight at 2:00 AM, intraday reports will diverge. Synchronize incremental refresh schedules across both workspaces.
  3. Audit Variance Card: Place a small Revenue Reconciliation Variance KPI in a hidden or admin audit tab so controllers can immediately isolate manual G/L revenue journals vs. item sales.
  4. Standardize Dimension Mapping: Bind Global Dimensions 1 & 2 consistently across G/L Entries and Value Entries to eliminate departmental rollup discrepancies.
AT

Connect with Allgrow Technologies

100% Free · No Obligation

Need an Objective Architecture or Code Assessment?

Discuss your Dynamics 365, Business Central, or Power Platform environment in a free 30-minute session with our senior engineers.

Get a Free 30-Minute Review →
Chat on WhatsApp