Skip to content
Case StudyOngoing4 min read

Data warehouse on Microsoft Fabric for a 200+ pharmacy chain

Magistra a.s. operates more than 200 pharmacies across the Czech Republic alongside its own e-shop. We are building a central data warehouse on Microsoft Fabric — integrating data from individual pharmacies, physician and specialty data, the e-shop, and further systems into a unified platform for reporting and analytics.

200+pharmacies integratedunified data view
MS Fabricunified analytics platformone tool for everything
Real-timeperformance reportinginstead of manual reports
360°customer viewonline and offline channels
01 — Starting point

Data from 200+ pharmacies, an e-shop, and external systems — siloed, with no unified view

A network of more than 200 pharmacies generates enormous volumes of data — sales, inventory, prescriptions, customers. On top of that come data from the proprietary e-shop, information about physicians and their specialties, and a range of other systems. Each source lived in its own silo. Without a central data warehouse, meaningful reporting, branch performance comparisons, or deeper data analyses were not feasible.

Pharmacy datafragmented, in separate systems
Performance reportingmanual, slow, unreliable
E-shop data integrationmissing entirely
Data analyticspractically impossible without a DWH
Challenge
a unified data warehouseconnecting all data sources into a single analytics platform
02 — Solution

Microsoft Fabric as the central data platform

We are designing and building a data warehouse on Microsoft Fabric — Microsoft's modern unified analytics platform. We integrate data from all sources, ensure cleansing and transformation, and deliver reporting and analytical tooling.

01

Microsoft Fabric — unified analytics

A data warehouse built on Microsoft Fabric combines data integration, lakehouse storage, transformations, and reporting in a single platform — without the complexity of managing separate tools.

02

Pharmacy data ingestion

Automated ETL pipelines ingest data from individual pharmacies — sales, inventory, prescriptions, and customer data — and centralise them in the data warehouse.

03

Physician and specialty data integration

Integration of external data on physicians, their specialisations, and areas of expertise enables prescription behaviour analyses and identification of business opportunities.

04

Proprietary e-shop integration

Data from the online sales channel is combined with data from physical pharmacies — a unified view of the customer across all channels.

05

Additional system integrations

The open data warehouse architecture allows further data sources to be connected incrementally according to business priorities.

06

Reporting and data analytics

Pharmacy performance reporting, sales analyses, customer segmentation, trend analyses, and ad-hoc querying over centralised data.

03 — Architecture

Solution Architecture

The data platform is built on Microsoft Fabric — data is ingested from heterogeneous sources (pharmacy systems, e-shop, external registries), passes through ETL transformations, and is stored in the lakehouse layer. Power BI provides reporting and self-service analytics.

Solution architecture
  1. Sources: 200+ pharmacies (POS · inventory · prescriptions); E-shop (orders · customers); Doctors & specialties (external registries); Other systems (added progressively)
  2. ETL: Data Factory (ETL pipelines)
  3. Storage: Lakehouse (Microsoft Fabric · central storage)
  4. Outputs: Power BI (reports · analytics); Data exports (downstream systems)
  5. Users: Business users (reports · ad-hoc analysis)
04 — Results

Results

Central data warehouse

All data from pharmacies, the e-shop, and external sources in one place — the end of data silos.

Automated ETL pipelines

Regular ingestion and transformation of data from all sources without manual intervention.

Pharmacy performance reporting

Branch performance comparisons, sales trend analyses, anomaly identification, and opportunity discovery.

Prescription behaviour analytics

Linking physician and specialty data with sales data enables entirely new business analyses.

Unified customer view

Data from physical pharmacies and the e-shop connected into a single customer profile.

Scalable architecture

An open platform ready for the incremental addition of new data sources and analytics use cases.

Technologies

  • Microsoft Fabric
  • Power BI
  • Azure Data Factory
  • Lakehouse
  • SQL
  • Python
  • ETL pipelines

More case studies

All case studies

ClinicDent

Multitenant SaaS for dental clinics — from booking to insurance billing

HealthcareSaaSMultitenant
Read more

JUST CS spol. s r. o.

Full replacement of an MLM sales network management system in 3 months

EnterpriseSystem replacementAzure
Read more

Netigo s.r.o.

An application for network traffic collection and reporting supporting NetFlow v5/v9 and IPFIX protocols, with a high-performance storage backend on PostgreSQL + TimescaleDB.

High-performanceDataNetwork
Read more

Related reading

Deeper technical notes on the topics from this case study.

Enterprise Integration · 8 min read

Microsoft Fabric one year into enterprise: what works, what doesn't

A year with Microsoft Fabric on the Magistra DWH project for 200+ pharmacies. Where Fabric genuinely adds value over Databricks/Snowflake, where we complain, and whether you would start today.

Read article
Architecture & Consulting · 8 min read

Data warehouse model for 200+ branches: built to absorb growth and mergers

For Magistra we're building a DWH over a network of 200+ pharmacies. Star schema vs. Data Vault, handling branch mergers, late-arriving dimensions, slowly changing dimensions — modeling decisions that don't reverse easily.

Read article
Enterprise Integration · 7 min read

ETL with 50+ sources: automating schema drift and quality gates

Magistra DWH integrates data from 50+ sources — pharmacies, e-shop, HR, external APIs. Schema changes without warning, data quality varies. Contract testing, quality gates and observability pipeline as code.

Read article
A senior architect on every project · About us →

Want a similar solution?

Send us a message — we respond within one business day and schedule an intro call.