Git Product home page Git Product logo

project-analysis's Introduction

Project-Analysis

Business Request & User Stories

The business request for this project was created by the user himself. By deciding on a business to analyze (exercise data) the following user story was derived.

Data Collection & Table Structures

The necessary data were collected and structured in Excel files. The exercise data was organized as a fact table and date & activity were organized as dimension tables for filtering data.

A - FACT_ Exercise :

Exercise data were recorded every single date and the focus was on amount of steps. The date column is used to connect to the date dimension and Activity_FK is used to connect to the activity dimension.

fact

Following steps were done in Power BI to transform this table to be ready for analysis purposes:

1-Promoted row so that the data so that the first row was used as headers. 2-Removed unnecessary columns. 3-Changed column to have the correct type (date, numbers etc.) for later use in calculations.

power query

B - DIM_Activity :

DIM_Activity describes two different types of activities: Walking and running. On some days walking was chosen as a preferred activity time, and other days running were performed. Some minor data issues in this table was later cleaned up and corrected.

dim 1

Following steps were done in Power BI to transform this table to be ready for analysis purposes:

power query2

1-Promoted row so that the data so that the first row was used. 2-Renamed necessary columns to give better business friendly names. 3-Capitalized each for in the description column for improved data quality.

C- DIM_Date :

The DIM_Date dimension is based on a simple table with dates, where date was used to derive several new fields which would be used in the exercise analysis dashboard:

Promoted row so that the data so that the first row was used. Changed the column to DateType Inserted several new columns based on the date.

power query3

Data Model

Below is a screenshot of the data model after cleansed and prepared tables were read into Power BI.

We can see that the FACT table is connected to two dimension tables with the correct relationship established (1 to *) between dimension and fact tables.

data model

Calculations : DAX

The following calculations were created in the Power BI reports using DAX (Data Analysis Expressions). To lessen the extent of coding, the re-use of measures (measure branching) was emphasized:

Average Steps – This is a simple AVERAGE function around the Steps column:

d1

Total Steps – This is a simple SUM function around the Steps column:

d2

Steps (Running) – This is a calculation to isolate the Total Steps measure by filtering it by the “Running Activity”:

d3

Steps (Walking) – This is a calculation to isolate the Total Steps measure by filtering it by the “Walking Activity”:

d4

Running % of Total – Here we are using two measures from before to find the % of steps that were done by running:

d5

Walking % of Total – Here we are using two measures from before to find the % of steps that were done by walking:

d6

Total Steps (Cumulative) – Here we are re-using the Total Steps measure and using different functions to cumulatively calculate the total steps:

d7

Week Over Week % Change Steps – Here we are using the Total Steps measure and using different functions, with variables, to calculate the Week over Week % Change of Steps:

d8

Analysis Dashboard

The finish report consists of two different dashboards. One is more of a basic version, while the second version contains more advanced visualizations. To enable these visualizations the calculation language DAX (Data Analysis Expressions) were used.

Link Dashboard : https://www.novypro.com/project/project-1

project-analysis's People

Contributors

mohammedtoumi007 avatar

Watchers

 avatar

project-analysis's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.