HackTime Solutions Free consultation
Shopify integrationsMicrosoft Power BI integrations

Reconcile Shopify sales and refunds in Power BI

A customer buys on Friday and gets a partial refund on Monday. Which day should change in your Power BI report? We connect Shopify to Microsoft Power BI so finance can open either day, see the order and its adjustments, and explain the difference against Shopify’s sales report.

Why do Power BI and Shopify show different totals?

Start with the figure finance is comparing. Shopify records a sale on the order date and a reversal on the day it was processed. Net sales include discounts and sales reversals. Cash returned to a card is a separate measure. A return request can be open before a refund, and a shipping-only refund changes the shipping figure. We agree the measure, store time zone and reporting currency with finance before comparing totals.

Integration steps

  1. Check how far the report can reach

    For a store’s read-only order feed, use Shopify’s GraphQL Admin API with read_orders. The default order window is 60 days. A longer history requires approved read_all_orders access alongside read_orders. If that access is unavailable, agree a dated export for the backfill and mark where API coverage starts.

  2. Keep every adjustment tied to its order

    Stage orders, sales adjustments and refund transactions under their Shopify IDs. Store the currency code with every amount. Use shop currency for the store total and retain the customer’s currency for drill-down. Count completed money movements once and keep pending or failed ones visible for review. Re-read changed orders so a later partial refund reaches the report.

  3. Refresh the report after Shopify finishes loading

    Connect a Power BI import model to the reporting tables and schedule its refresh after extraction. Configure the source credentials and a gateway if the chosen data source requires one. Show the last successful Shopify load in the report so finance can tell whether today’s transactions arrived, even when Power BI refreshed successfully.

What we test together

Use a sample order with a 100-unit product sale on Friday and a 20-unit product refund processed on Monday, in the same shop currency with no tax, shipping or discounts. Expect 100 on Friday, a 20 reduction on Monday and 80 across both days. Replay the load and confirm the totals hold. Then check a shipping-only refund and an order paid in a second currency against Shopify, and verify the scheduled run in Power BI refresh history.

Apps in this workflow

Technical references