Excel Guides

Why Power BI Distinct Customer Totals Do Not Add Up Across Months

October has three identified customers. November has three. The two-month total is four because two people bought in both months. When the dashboard also combines point-of-sale and web orders, check that each channel ID points to the right person before explaining the total.

Check the Power BI measure and its customer key

Microsoft’s DISTINCTCOUNT documentation shows why distinct totals are non-additive. The measure counts within the filter context of each cell, so the total counts once across the selected period. Use the canonical customer ID and exclude unresolved identities, for example by representing them as blanks and using DISTINCTCOUNTNOBLANK. Keep review counts visible. A Spanish-language Fabric Community question asks about the same yearly-versus-monthly mismatch.

In Power Query, merge the paid orders to the customer map on both channel and local ID. Validate that the map has exactly one nonblank master ID per matched key before expanding it, so duplicate map rows cannot multiply orders. In this synthetic example, Web W01 is C-01 and POS W01 is C-03. Joining on W01 alone can misassign an order.

Reproduce the counts in Excel

Paste the synthetic data into Orders and Customer_Map at A1. Split at commas if needed and make sure Excel recognizes the dates. The sample uses a current, fixed mapping for both months.

Orders

Order,Order date,Channel,Channel customer ID,Status
O-201,2026-10-02,Web,W01,Paid
O-202,2026-10-08,Web,W01,Paid
O-203,2026-10-10,POS,P01,Paid
O-204,2026-10-12,POS,P99,Paid
O-205,2026-10-30,POS,W01,Paid
O-206,2026-10-31,POS,,Paid
O-207,2026-11-02,Web,W02,Paid
O-208,2026-11-09,Web,W01,Paid
O-209,2026-11-12,POS,P02,Paid
O-210,2026-11-14,Web,W99,Paid
O-211,2026-11-15,POS,W01,Voided
O-212,2026-12-01,POS,W01,Paid

Customer_Map

Channel,Channel customer ID,Master customer ID
Web,W01,C-01
POS,P99,C-01
Web,W02,C-02
POS,P01,C-02
POS,W01,C-03
POS,P02,C-04

In Customer_Map D2, enter =A2&"|"&B2 and fill through D7. Here the separator is absent from both fields. In Orders F2 enter the following and fill through row 13.

=IF(OR(E2<>"Paid",B2<DATE(2026,10,1),B2>=DATE(2026,12,1)),"Excluded",IF(D2="","Missing ID",IF(COUNTIF(Customer_Map!$D$2:$D$7,C2&"|"&D2)<>1,"Review map",INDEX(Customer_Map!$C$2:$C$7,MATCH(C2&"|"&D2,Customer_Map!$D$2:$D$7,0)))))

On a Counts sheet, list the four master IDs in A2:A5. For a larger export, make the list unique before using it. Put =DATE(2026,10,1) and =DATE(2026,11,1) in B1 and C1. Enter the first formula in B2 and copy it across to C and down through row 5. Enter the second in D2 and copy down. Sum B, C and D separately.

=--(COUNTIFS(Orders!$F$2:$F$13,$A2,Orders!$B$2:$B$13,">="&B$1,Orders!$B$2:$B$13,"<"&EDATE(B$1,1))>0)
=--(SUM(B2:C2)>0)

Read the two totals and the identity exceptions

October has C-01, C-02 and C-03. November has C-01, C-02 and C-04. That gives six customer-months and four distinct customers across the full period. C-01 and C-02 account for the difference. Eight paid orders map to identified customers. Two paid orders need review: O-206 has no local ID and O-210 has a Web ID missing from the map.

In Jolene.pro, ask for the two monthly customer sets and the period set, then request the supporting order and mapping cells for customers who appear in both months. Ask for unmatched paid orders separately. Save the check to reuse it on next month’s export.

1 comment

Leave a comment