Dataset Used:
Context:
The "120 Years of Olympic History: Athletes and Results" dataset from Kaggle contains historical Olympic data from Athens 1896 to Rio 2016. The original dataset includes two files: Olympic Events, containing 268,768 records with athlete participation details, and NOC Regions, containing 230 records that map National Olympic Committee (NOC) codes to countries and regions.
In the original Olympic Games, the Summer and Winter Olympics were held in the same year until 1992. From 1994 onwards, the Summer and Winter Games each continued on their own four-year cycle, staggered two years apart (for example, Winter 1994, Summer 1996, Winter 1998, and so on).
Throughout this learning series, we will use the enhanced dataset to explore various Power BI concepts, including data modeling, semantic models, geographical analysis, and report visualizations. We will analyze different aspects of the Olympic Games, such as country performance, athlete performance, medal trends, geographical insights, and the evolution of women's participation over time.
Field Description:
- ID – Unique identification number for each athlete (Integer)
- Name – Name of the athlete (Text)
- Gender – Gender of the athlete (M/F) (Text)
- Age – Age of the athlete (Integer)
- Height – Height of the athlete in centimeters (Integer)
- Weight – Weight of the athlete in kilograms (Decimal Number)
- Team – Name of the team the athlete represented (Text)
- NOC – Three-letter code representing the National Olympic Committee (Text)
- Games – Olympic Games edition (Year and Season) (Text)
- Year – Year in which the Olympic Games were held (Integer)
- Season – Summer or Winter (Text)
- City – Host city of the Olympic Games (Text)
- Sport – Sport category (Text)
- Event – Specific event within the sport (Text)
- Medal – Medal won (Gold, Silver, Bronze, or No Medal) (Text)
- GamesOpeningDate – Official opening ceremony date of the Olympic Games (Date)
- NOC – Three-letter code representing the National Olympic Committee (Text)
- Region – Country or region name (Text)
- Notes – Additional information (Text)
- Continent – Name of the continent (Text)
- MedalsWon – Medal count by region (Integer)
- Region – Name of the region (Text)
- Target – Target medal count for each region (Integer)
- AthleteID – Unique athlete identifier (Integer)
- Name – Athlete name (Text)
- Gender – Gender (M/F) (Text)
- EventID – Unique event identifier (Text)
- Sport – Sport category (Text)
- Event – Specific event name (Text)
- AthleteID – Links to DimAthlete (Integer)
- EventID – Links to DimEvent (Text)
Importing Dataset into Power BI
- Renaming columns and tables
- Removing unnecessary columns
- Filtering rows
- Splitting and merging columns
- Changing data types
- Creating custom columns and calculations
- Combining or appending queries
- Performing many other data transformation operations
Note: Once the transformation is done make sure all the filters applied are cleared. Only filtered rows will get loaded if any filters are applied.
Data Preparation & Cleaning
Under the option Cross filter direction, we
have two options
· Single directional filter
· Bi-directional filter
Single (Single-directional) – In a single-directional relationship, filters flow in only one direction. Filtering one table affects the related table, but not vice versa.
Both (Bi-directional) – In a bi-directional relationship, filters flow in both directions. Filtering either table affects the related table, allowing filters to propagate across the relationship.
Let's create visuals based on the above dataset in further blogs. Get ready!
Download Raw files - Download the sample datasets (ZIP)
Download .pbix files - Download the completed Power BI report (.pbix)
Data Profiling
Power Query includes built-in Data Profiling features that help assess data quality before loading data into the model.
These include:
- Column Quality
- Column Distribution
- Column Profile
These tools help identify null values, duplicate records, unexpected values, and inconsistencies, making it easier to clean and validate datasets.
Conclusion
Preparing and organizing your data is the first step toward building meaningful Power BI reports. By importing data, performing transformations in Power Query Editor, creating a well-structured semantic model, and establishing the right relationships, you ensure accurate analysis and better report performance. With the dataset now ready, you're all set to explore the wide range of Power BI visuals in the upcoming lessons and create interactive, insightful dashboards.









No comments:
Post a Comment