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