Microsoft Fabric Implementation

Introduced and built a central data and reporting environment from the ground up, bringing together business applications and transforming how data is managed, accessed and used across the business.

← Back to Projects
ProjectMicrosoft Fabric Implementation
ToolsMicrosoft Fabric, SQL, Python, Power BI, Dataflow Gen2
StatusImplemented and actively maintained
Portfolio Data
This case study is based on the Microsoft Fabric environment I've built. Screenshots show parts of the real environment, with sensitive business information removed where needed. The examples focus on how the environment was developed and how it supports reporting across the business.

Project at a Glance

01

Problem

The business had no central reporting data environment, with reports connecting directly to separate applications and data preparation repeated across reports.

02

Solution / Change

I introduced and implemented Microsoft Fabric, building a central environment for extracting, transforming, storing and modelling data from different business applications.

03

Outcome

Microsoft Fabric has become the central environment for data and reporting across the business, bringing together information from different applications, reducing repeated work and providing reliable reporting that supports better decisions.

Problem

Before Microsoft Fabric, there was no central reporting data environment. Reports connected directly to business applications, meaning data had to be extracted and transformed separately each time, making reporting less efficient and harder to maintain.

There was also an opportunity to make better use of the data already held across the business, bringing it together to provide deeper analysis, improve processes and support future development.

Solution / Change

I built the Microsoft Fabric environment from scratch, bringing together data from CargoWise and other business applications using SQL, pipelines, notebooks and Dataflow Gen2.

As reporting has grown across the business, I've continued developing the environment with reusable datasets, semantic models, deployment pipelines and GitHub integration, making reporting easier to manage and maintain.

Before

  • No central environment for storing and managing reporting data.
  • Reports connected directly to separate business applications.
  • Data extraction and transformations repeated for individual reports.
  • Limited ability to combine information across systems for more detailed analysis.

Now

  • Central data environment bringing together information from different business applications.
  • Data extracted and transformed centrally, creating reusable datasets and reducing repeated work.
  • More consistent and reliable reporting, with refresh schedules based on business needs.
  • Reporting accessible across the business through one Power BI app, supporting deeper analysis and better decisions.

From CargoWise to Reporting-Ready Data

CargoWise contains thousands of tables covering different areas of the business. The database is designed to support operational processes, which makes extracting and preparing data for reporting more complicated.

Rather than bringing everything into Fabric, I use SQL to extract the information needed, combine tables and transform the data into a clearer structure for reporting. Shipments are used here as one example of the approach applied across the wider database.

CargoWise Source SQL Transformation Fabric Pipeline Lakehouse Semantic Model Power BI
Part of the CargoWise shipment-related database diagram showing operational tables and relationships
An example of CargoWise's complex database structure, showing only part of the shipment-related area. Reporting also requires information from other areas of the database.

SQL Transformations

I use SQL to combine CargoWise tables, make the data easier to understand and create additional fields needed for reporting. By carrying out these transformations at source, less processing is needed in Fabric, helping reduce capacity usage and making data preparation more efficient.

The examples below show different ways I've prepared CargoWise data before loading it into Fabric.

View SQL — Joins & Data Transformation

Shipment reporting requires information from multiple CargoWise tables. I use joins to bring together related data, including organisations and additional shipment information. Subqueries allow me to select specific records before joining them to the main dataset.

LEFT JOIN JOBHEADER ON JH_ParentID = JS_PK
LEFT JOIN ORGADDRESS OAL ON JH_OA_LocalChargesAddr = OAL.OA_PK
LEFT JOIN ORGHEADER OHL ON OAL.OA_OH = OHL.OH_PK

LEFT JOIN (
    SELECT
        E2_ParentID,
        E2_OA_Address,
        E2_AddressType
    FROM jobdocaddress
    WHERE E2_AddressType = 'CRD'
) AS SHP ON SHP.E2_ParentID = JS_PK
View SQL — Calculations & Reporting Fields

This example uses revenue, job activity, ranking and date calculations to create useful reporting fields before the data is loaded into Fabric.

Select 
RANK() OVER (ORDER BY SUM(JR_LocalSellAmt) DESC) AS Rank,
OH_Code as Code,
OH_Fullname as Name,
Count(DISTINCT(JH_PK)) AS Jobs,
SUM(JR_LocalSellAmt) as Revenue,
CAST(SUM(JR_LocalSellAmt) as DECIMAL(18,2))/ NULLIF(COUNT(DISTINCT JH_PK),0) AS AveragePerJob,
MAX(JH_SystemCreateTimeUtc) as LastJobDate,
DATEDIFF(Day,MAX(JH_SystemCreateTimeUtc),GETDATE()) AS DaysSinceLastJob,
Case 
WHEN SUM(JR_LocalSellAmt) > 100000 THEN 'Gold'
WHEN SUM(JR_LocalSellAmt) > 25000 THEN 'Silver'
Else 'Bronze'
end as HealthBand
View SQL — CTEs & Window Functions

I use CTEs and window functions to handle situations where multiple records exist for the same item. The first example ranks organisation relationships by priority and creation date, allowing me to select one organisation for each product before loading the data into Fabric. The second calculates running inventory over time.

Selecting organisation relationships

WITH RankedRelations AS (
    SELECT
        OU_OP,          
        OU_OH,          
        OU_Relationship,
        OU_SystemCreateTimeUTC,
        ROW_NUMBER() OVER (
            PARTITION BY OU_OP
            ORDER BY 
                CASE OU_Relationship 
                    WHEN 'OWN' THEN 1
                    WHEN 'BTH' THEN 2
                    WHEN 'SUP' THEN 3
                    ELSE 4
                END,
                OU_SystemCreateTimeUTC DESC 
        ) AS rn
    FROM OrgPartRelation
    WHERE OU_Relationship IN ('OWN','BTH','SUP')
)

Running inventory calculation

SELECT *,
    SUM(Units) OVER (
        PARTITION BY OrganisationID  
        ORDER BY FinalisedDate  
        ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
    ) AS RunningInventory

Lakehouse and Semantic Models

The data extracted and transformed from different business applications is stored centrally in Microsoft Fabric, creating reusable datasets that can support reporting across the business.

From there, I build semantic models to bring together the information needed for different reports, rather than repeatedly preparing the same data from the original applications.

The shipment model is one example of how I've organised data into a clearer structure for Power BI.

Integrating Different Data Sources

Different business applications require different approaches to bringing data into Fabric. Alongside CargoWise, I've implemented integrations using APIs, notebooks, Dataflow Gen2 and pipelines, depending on the source and reporting requirements.

CargoWiseSQL + Fabric Pipelines

Operational data is transformed at source and loaded into reusable Lakehouse tables.

ShopifyAPI + Notebook + SQL

Inventory is processed through Bronze, Silver and Gold before being compared with CargoWise.

WebCargoAPI + Notebooks

Quotation data is combined with CargoWise to provide a wider view of quote activity.

Shopify inventory pipeline showing active Bronze, Silver and Gold notebook stages
The Shopify process moves inventory through Bronze, Silver and Gold, with SQL used for the Silver and Gold transformations.

I've also used Dataflow Gen2 for API and application data including PeopleHR, Jira, SharePoint and Viva Insights. This allows me to choose the method that best fits each source rather than using the same approach for everything.

Managing the Environment

As the reporting environment has grown, I've continued to develop and maintain it, managing changes, refreshes and reporting availability across the business.

Controlled Delivery

I use deployment pipelines to test changes before moving them into production, helping reduce the risk of disrupting reporting already used by the business.

Version Control

GitHub integration allows me to track changes and maintain version history as the environment develops.

Refresh by Need

Hourly, daily and monthly refresh schedules are used according to how current each area of reporting needs to be.

Microsoft Fabric deployment pipelines used to manage testing and production changes
Deployment pipelines support testing and production changes across the Fabric environment.

Reporting Across the Business

As the Fabric environment has developed, I've built reporting across different areas of the business, bringing together data from multiple applications to provide clearer information for day-to-day operations and management decisions.

Reports are available through one Power BI app, with refresh schedules based on how frequently the information is needed.

Finance & Management

Executive Financial Dashboard

Financial performance, profitability, budgets and forecasting.

Customer Financial Overview

Customer performance, revenue, gross profit and net profit, helping understand profitability at customer level.

Outstanding Transactions

Invoices due, overdue and not yet due, helping monitor outstanding balances.

Warehouse & Inventory

Warehouse Overview

Hourly visibility of current and future orders, overdue orders, back orders and historical activity.

Warehouse Inventory

Current stock availability and customer inventory information.

Warehouse Utilisation

Warehouse capacity, customer space usage, pallet numbers and available versus unavailable locations.

Shopify Inventory Comparison

Compares Shopify and CargoWise stock levels to identify differences.

Forwarding, Transport & Agents

Shipment Reporting

Shipment activity, origins, destinations, shippers, trade lanes and costs.

Transport Performance

Profitability, carrier performance, customer analysis and vehicle utilisation.

Agent Performance

Current agent activity and performance.

Sales & Marketing

CRM & Sales Performance

Sales opportunities, win/loss trends, conversion, sales performance and customer value.

Marketing Performance

Campaign activity and marketing insights.

Quotation Reporting

Quoting activity, conversion, lost quotes and outstanding follow-ups across CargoWise and WebCargo.

Customer Reporting

Customer Dashboard

Customer shipments, emissions, warehouse movements and inventory in one view.

Customer Shipment Overview

Shipment activity, origins, destinations, shippers, trade lanes and costs.

Workforce & Productivity

Productivity & Capacity

Resource utilisation, available capacity, absence and associated costs.

Systems, Applications & Data Quality

Master Data

Duplicate organisations, incorrect records and data improvement progress.

Invoice Processing Portal

Automation pass rates, customer-level performance, parsing failures and outstanding work.

CargoWise Value

Application costs, module utilisation and opportunities to make better use of existing functionality.

IT & Project Management

Jira & IT Strategy Reporting

Project progress, performance and status, used as a reference point for monthly strategy meetings.

Outcome

A central data environment bringing together information from different business applications.

Data from CargoWise and other systems is now brought together in Microsoft Fabric, allowing information to be combined for more detailed reporting and analysis across the business.

More efficient and consistent reporting through reusable datasets.

Data is extracted and transformed centrally, reducing repeated preparation work across reports. Reusing the same datasets also reduces the risk of inconsistent information and calculations between reports.

Reporting is easier to access and kept up to date.

Users can access reporting through one Power BI app on their laptops or phones, with hourly, daily and monthly refresh schedules depending on business requirements.

A more reliable and organised reporting environment.

Using deployment pipelines and GitHub allows me to manage changes, keep track of previous versions and reduce the risk of disrupting reporting used across the business.

Better data quality, processes and business decisions.

Reporting has helped identify incorrect data, master-data issues and opportunities to improve processes. It also provides management with clearer financial and operational information to support decisions across the business.

Tools & Skills

Microsoft Fabric · SQL · Power BI · Python · Dataflow Gen2 · Data Factory · Pipelines · Lakehouse · Notebooks · APIs · ETL · Data Modelling · Semantic Models · Deployment Pipelines · GitHub · Data Quality