Skip to content

A demonstration on creating a simple multi-sports event dashboard using PowerBI and DAX

Notifications You must be signed in to change notification settings

KwokHing/Creating-a-multi-sports-event-dashboard-in-PowerBI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Creating a multi-sports event dashboard in Microsoft PowerBI

This demo will provide an introduction in

  • loading flat files (.csv) into PowerBI
  • creating New Measures in PowerBI
  • creating custom sorting order in PowerBI
  • creating different visualisations to build a dashboard

This dataset used is scraped from the 8th Asean ParaGames website (2015) using the free tier of import.io

Part 1: Inserting Data - medals.csv

Load the flat file data into PowerBI by clicking on "Get Data" > "Text/CSV" > and select "medals.csv". The medals.csv data contains all the information scrapped from the 8th Asean ParaGames websites containing the event name, player name, country, medal type, day of the event, genre of the sport, gender, and the sport type (team or single).

jpg

On the preview window click on the "load" button to import the data into PowerBI

jpg

Part 2: Inserting Data - medalSort.csv

Repeat the steps in Part 1 and import the medalSort.csv data into PowerBI The medalSort.csv data contains the data to perform custom sorting in PowerBI. PowerBI could not understand the sort order of the medal type. For example Gold is > than Silver > than Bronze therefore we need to specify a custom sorting order.

If the custom sorting is not specified, PowerBI will sort the medal in alphabetical hierarchical format -> Bronze, Gold, Silver, which is wrong.

Navigate to the Relationship Viewer last tab on the left hand panel to see the relationship between the two loaded dataset

Part 3: Creating New Measures

Four new measures needs to be created in order to present the information in the final dashboard

  • total event count
  • total medal count
  • cumulative event count
  • cumulative medal count

Navigate to the Query Editor middle tab on the left hand panel and add the four new measures to the medal dataset as shown below:

total event count jpg

total medal count jpg

cumulative event count jpg

cumulative medal count jpg

Part 4: Building Visualisations for Dashboard

The different types of visualisations used to build the dashboard are:

  • silcer
  • cards
  • piechart
  • table
  • filled map
  • scatter plot

Navigate to the Report first tab on the left hand panel and add the different visualisations to the dashboard canvas:

slicer visualisation
Drag the slicer visualisation onto the canvas to act as a filter. Next drag 'sport' from the field panel to the slicer Field in the visualisation panel. This creates a filter based on the different genre of sports. jpg

Create another two sets of filter using the 'genre' and 'type' data column

cards visualisation
Drag the cards visualisation onto the canvas. Add 'Country' to the cards Field, next click on the added 'Country' data and select 'Count (Distinct)' to show the number of unique countries taking part in this sporting event. jpg

Repeat the above steps and for displaying the number of different sports involved and competitve events

piechart visualisation
Drag the piechart visualisation onto the canvas. Add 'gender' to the piechart Legend and 'event' to the piechart Values, click on the added 'event' data and select 'Count (Distinct)' jpg

table visualisation
Drag the table visualisation onto the canvas. Add 'Country' to the table Rows, 'medal' (from the medals dataset) to the Columns and 'medal count' to the Values jpg

filled map visualisation
Drag the filled map visualisation onto the canvas. Add 'Country' to the filled map Location, and 'medal count' to the Color saturation jpg

scatter chart visualisation
Drag the scatter chart visualisation onto the canvas. Add 'Country' to the scatter chart Details, 'Cumulative Medals Count' to the X Axis, 'Cumulative Events Count' to the Y Axis, and 'Cumulative Medals Count' to the Size jpg

Animation of the medal counts by country by day
gif

Final Dashboard

gif

About

A demonstration on creating a simple multi-sports event dashboard using PowerBI and DAX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published