SShortSingh.
Back to feed

Developer Builds Full Power BI Solution for JCars Logistics Using Star Schema and DAX

0
·5 views

A developer has documented the end-to-end process of building a Power BI business intelligence solution for JCars Logistics, starting from raw data cleaning through to dashboard delivery. The project involved separating raw and cleaned datasets, standardising field types, and removing invalid or duplicate records before any visualisation work began. A star-schema data model was designed with a central FactSales table linked to six dimension tables covering vehicles, customers, locations, sales representatives, payment methods, and dates. Reusable DAX measures — including total revenue, gross profit, average revenue per car, and logistics cost — were created to ensure consistent calculations across all report pages. The final output spans six report pages and an interactive dashboard built around key questions a logistics manager would ask, such as branch performance, sales representative contribution, and revenue trends over time.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Why Sticky Session Routing Without TTLs Quietly Causes Backend Imbalance

Session affinity routes clients to the same backend node consistently, but problems arise when assignment records are never deleted after a client disconnects or goes idle. Over time, stale rows accumulate in the routing table, causing the load-balancing logic to misjudge which nodes are least loaded. This gradually concentrates traffic on a small number of nodes, producing imbalance that appears unrelated to any routing bug. The recommended fix is adding a TTL to each assignment, refreshed on every active use, rather than relying on explicit delete-on-disconnect events that may never fire. Developers using DynamoDB should note that its native TTL deletion is best-effort and not instantaneous, so expired records may briefly persist beyond their expiry time.

0
ProgrammingDEV Community ·

How to Connect Shopify to GA4 Without Google Tag Manager Using Native Events

Shopify's Google & YouTube sales channel can send the full GA4 ecommerce event set natively in minutes, eliminating the need for Google Tag Manager. However, browser-side data loss from ad blockers, iOS tracking prevention, and ITP can cause GA4 purchase counts to fall short of actual Shopify orders. To close this gap, developers recommend adding a server-side purchase event that sends data to GA4 via the Measurement Protocol through a Shopify webhook. Setting up the integration requires creating a GA4 property with matching timezone and currency, then connecting it through the Shopify Google & YouTube channel using the same Google account that owns the property. Additional best practices include extending data retention to 14 months on day one and enabling Enhanced Measurement, since the default two-month retention window prevents year-over-year analysis.

0
ProgrammingDEV Community ·

Developer shares free SKILL.md template to turn AI into a Python coding mentor

A self-taught developer has created and open-sourced a SKILL.md template designed to configure AI tools like ChatGPT, Claude, and Lumo AI into structured Python tutors rather than answer machines. The template is grounded in established educational concepts, including scaffolded hints, Zone of Proximal Development, and a three-tier concept breakdown covering analogies, syntax, and internal Python mechanics. It also introduces the L.I.F.T. code review framework, which evaluates code on Logic, Idiomatic Pythonness, PEP 8 formatting, and time-space complexity. The approach aims to address a gap for self-taught developers who cannot afford bootcamps or CS degrees and currently rely on AI tools that bypass active problem-solving. The template is compatible with multiple AI platforms and local agents, and the author has shared it on DEV Community to gather feedback for further improvement.

0
ProgrammingDEV Community ·

SQL Subqueries and CTEs Explained With Real-World Data Analysis Examples

SQL subqueries and Common Table Expressions (CTEs) are techniques that help analysts break complex data questions into smaller, manageable steps. A subquery, also called a nested or inner query, is written inside another SQL query and passes its result to the outer query for further processing. For instance, finding employees who earn above the company average requires first calculating that average, which a subquery can handle automatically within a single statement. This approach is especially useful with dynamic data, as the query recalculates results each time it runs rather than relying on hardcoded values. The article further classifies subqueries by the number of values they return and how they interact with outer queries, alongside a comparison with CTEs.