Liza Deka

Analyst

Data analyst building SQL queries and Power BI models for retail, logistics, and customer problems

Scores reflect independent, automated grading of simulated business tasks completed on DataSimHQ.

Graded projects
15
Average best score
92/100
Career level
Analyst
Core tool stack
SQL (12) · Power BI (2) · email (1)

About

Working through retail and logistics scenarios on a simulation platform, I have written SQL queries to answer precise business questions: counting orders within date ranges, breaking down complaint categories with window functions, and filtering duplicate records to establish a clean customer baseline. Each submission was independently graded against a verified ground truth, so the numbers I report are confirmed correct.

Across these projects I have also set up a Power BI data model by connecting directly to a PostgreSQL database, loading eight tables in Import mode, and verifying that the auto-detected relationships covered the key paths needed for downstream analysis. My focus throughout has been on writing readable, defensively structured queries and delivering results a stakeholder can act on immediately.

Skills

SQL

  • SQL date range filtering with half-open intervals
  • Window functions using SUM(COUNT(*)) OVER ()
  • COALESCE for NULL handling
  • Boolean filtering with IS FALSE
  • Column aliasing for readable output
  • Percentage share calculation in SQL

Power BI

  • PostgreSQL connection in Power BI via Import mode
  • Power Query M code for table navigation
  • Multi-table data model setup in Power BI

Communication

  • Plain-language findings writing for non-technical stakeholders
  • Targeted column selection from multi-column tables
  • ORDER BY for sorted aggregations

Logistics · Email

Summarising FlowRoute complaint data in a phone-readable briefing email

Independent grading: 95/100(verify, opens in a new tab)

Problem

Funmi Alade, Head of Customer Experience at FlowRoute Logistics (simulated logistics company), needed a quick read of the complaints picture before a Friday board meeting. She asked for three specific items: the top complaint category with its share, a verdict on hub performance, and one quotable number, all inside 150 words.

What I did

The email was structured around Funmi's three numbered asks rather than a generic summary format, so she could scan it in one pass on a phone screen. Lost shipments led at 25.6% of total complaints, but the more important point was that all four categories sat within one percentage point of each other, making the problem network-wide rather than category-driven. On hubs, the data showed a flat band between 71.90% and 72.08% delivery rate across all locations, so naming Lagos and Kano as near-identical examples illustrated the flatness rather than implying they were outliers. The quotable figure, approximately 36 complaints per 1,000 shipments, was framed as a network-wide rate so it could not be misread as a single-hub figure.

Finding

Lost shipments led the complaint categories at 25.6%, but all four categories were within one percentage point of each other, and no single hub stood out, with every hub falling between 71.90% and 72.08% delivery rate and 35.72 to 36.46 complaints per 1,000 shipments.

Outcome

Funmi received a sub-150-word email she could read between meetings and quote from directly when challenged by a colleague in the board session.

Next step

Breaking the approximately 36 complaints per 1,000 shipments figure down by complaint category and hub together would show whether lost shipments are uniformly distributed or whether specific hub-and-category combinations are driving the rate.

  • Plain-language findings writing for non-technical stakeholders
  • Percentage share calculation in SQL
  • Targeted column selection from multi-column tables

Logistics · SQL

Sizing FlowRoute's complaint problem by category for a board pack

Independent grading: 95/100(verify, opens in a new tab)

Problem

Funmi Alade at FlowRoute Logistics (simulated logistics company) needed a complaint breakdown for a board pack: a total count, a per-category split with percentages, and a clear statement of which category to lead with. The data sat in a single logistics.complaints table with one row per complaint.

What I did

To avoid writing a subquery or a second query just to get the total, I used SUM(COUNT(*)) OVER () as a window function, computing the grand total in the same pass as the per-category counts. COALESCE wrapped the category column to catch any NULL values and label them as Uncategorized, keeping the percentage calculation accurate even if the data was not perfectly clean. Percentages were rounded to two decimal places and the results were ordered from most to least common with ORDER BY complaint_count DESC. A comment in the query named lost as the lead category to satisfy the third requirement without requiring the reader to interpret the sort order themselves.

Finding

The complaints table held 64,737 total complaints, with the lost category leading at 25.6%, though all four categories fell within one percentage point of each other.

Outcome

Funmi had a verified breakdown she could paste directly into the board pack, with the lead category explicitly flagged for the opening framing.

SELECT
 COALESCE(category, 'Uncategorized') AS complaint_category,
 COUNT(*) AS complaint_count,
 SUM(COUNT(*)) OVER () AS total_complaints,
 ROUND(100.0 * COUNT(*) / SUM(COUNT(*)) OVER (), 2) AS pct_of_total
FROM
 logistics.complaints
GROUP BY
 COALESCE(category, 'Uncategorized')
ORDER BY
 complaint_count DESC;

The window function SUM(COUNT(*)) OVER () computes the grand total within the same query pass as the group-level counts, removing the need for a subquery and keeping the percentage calculation in a single readable SELECT.

Next step

Joining the complaints table to a shipments table to calculate complaints per 1,000 shipments by category would make the percentage breakdown more comparable across categories with different underlying volumes.

  • Window functions using SUM(COUNT(*)) OVER ()
  • COALESCE for NULL handling
  • Percentage share calculation in SQL
  • ORDER BY for sorted aggregations
  • Column aliasing for readable output

Retail · SQL

Confirming October 2023 order volume to ground a revenue gap investigation

Independent grading: 100/100(verify, opens in a new tab)

Problem

Senior analysts at Meridian Retail (simulated retailer) were investigating a revenue gap in October 2023 and needed one verified fact before proceeding: the exact number of orders placed that month. The ask came from the analytics team lead and required targeting the correct date column in the orders table.

What I did

The orders table contained both a created_at and an order_date column, so choosing the right one was the first decision. Following the brief, I filtered on created_at using a half-open interval, greater than or equal to 2023-10-01 and strictly less than 2023-11-01, to avoid any edge cases caused by time components on the final day of the month. Rather than a simple WHERE with BETWEEN, this pattern guarantees no rows are excluded or double-counted regardless of how timestamps are stored. The output column was aliased as total_orders so the result needed no explanation.

Finding

Meridian took 610 orders in October 2023, giving the senior analysts a confirmed baseline for the revenue gap investigation.

Outcome

The verified count gave the analytics team a single agreed-upon number to anchor their revenue reconciliation work.

select count(*) as total_orders
from orders 
where created_at >= '2023-10-01' and created_at < '2023-11-01';

The half-open interval pattern avoids timestamp edge cases on the last day of the month and was confirmed by the reviewer as the safest approach for this date range.

Next step

A useful follow-up would be breaking the 610 orders down by store or channel to see whether the revenue gap is concentrated in one segment or spread evenly.

  • SQL date range filtering with half-open intervals
  • Targeted column selection from multi-column tables
  • Column aliasing for readable output

Retail · Power BI

Loading eight Meridian tables into Power BI to enable a revenue discrepancy analysis

Independent grading: 100/100(verify, opens in a new tab)

Problem

Before any visual analysis of a revenue discrepancy could begin at Meridian Retail (simulated retailer), the data needed to be accessible inside Power BI Desktop. The request from the analytics lead specified eight tables from the retail schema and required Import mode rather than DirectQuery.

What I did

Each of the eight tables was connected through a PostgreSQL.Database call in Power Query, navigating to the correct schema and table name. Import mode was used as specified, pulling the full table schemas into the model. After loading, Power BI auto-detected nine relationships, including the paths from retail order_items to retail orders to retail customers and from retail products to retail categories, which are the joins most likely to be needed for a revenue breakdown. Reviewing the column counts across all tables confirmed that the full schemas came through without truncation.

Finding

All eight required tables loaded successfully in Import mode, with nine auto-detected relationships forming a connected model ready for analysis.

Outcome

The completed data model gave the analytics lead a connected, importable foundation from which to build visuals investigating the revenue discrepancy.

let
 Source = PostgreSQL.Database("ep-frosty-glade-ab4k8hyw-pooler.eu-west-2.aws.neon.tech", "meridian_retail"),
 #"Navigation 1" = Source{[Schema = "retail", Item = "categories"]}[Data]
in
 #"Navigation 1"

This M code shows the pattern used for each table: a direct PostgreSQL connection to the correct server and database, followed by schema-aware navigation to the target table.

Next step

The next step would be checking whether the auto-detected relationship between retail order_items and retail orders uses the correct key column on both sides, since an incorrect join column would silently corrupt any revenue aggregation built on top.

  • PostgreSQL connection in Power BI via Import mode
  • Power Query M code for table navigation
  • Multi-table data model setup in Power BI

Retail · SQL

Establishing the clean customer count to resolve conflicting team figures

Independent grading: 98/100(verify, opens in a new tab)

Problem

Different teams at Meridian Retail (simulated retailer) were reporting different customer counts, and the senior analytics team was investigating why. The task was to produce one authoritative number by filtering out duplicate records flagged in the customers table.

What I did

The customers table included an is_duplicate boolean column specifically designed to mark rows that should be excluded from any official count. Filtering with IS FALSE rather than = FALSE or != TRUE is the idiomatic PostgreSQL approach and avoids ambiguity if the column ever contains NULLs. The result was aliased as total_customers so the output label matched the business question exactly. Keeping the query to three lines was intentional: a task this precise does not benefit from added complexity.

Finding

The clean, deduplicated customer count for Meridian is 2,131, confirmed against the verified ground truth.

Outcome

The confirmed figure gave teams across the business a single agreed-upon customer count to use as a baseline for any metric that depends on customer volume.

select count(*) as total_customers
from customers 
where is_duplicate is false;

Using IS FALSE rather than a comparison operator is the PostgreSQL-idiomatic way to filter a boolean column and correctly excludes both false and NULL rows from an inadvertent count.

Next step

Checking how many rows have is_duplicate set to true and what values the duplicate_of column points to would confirm whether the duplicates are clustered around specific acquisition sources or time periods.

  • Boolean filtering with IS FALSE
  • Column aliasing for readable output
  • Targeted column selection from multi-column tables

Additional projects

Customer Analytics

  • Customer acquisition breakdown by channel · SQL · 95/100

Data Analysis

  • Order status distribution audit · SQL · 97/100
  • Orders table baseline summary for revenue investigation · SQL · 95/100

Data Quality

  • Single source of truth for customer count · SQL · 92/100
  • Negative stock detection for inventory integrity · SQL · 97/100
  • Power Query data cleaning for orders reporting · Power BI · 72/100

Financial Reporting

  • Gross vs net revenue reconciliation by order status · SQL · 60/100
  • Monthly revenue variance analysis for October 2023 · SQL · 95/100
  • Top margin opportunity products by price cost gap · SQL · 95/100

Operations Analytics

  • Hub performance benchmarking for operations review · SQL · 95/100