Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Apetbally/2023-Nigeria-Election-PowerBI

Domain:

socioeconomic
Creator:
Ape
Host:
2023 Nigerian Presidential Election Results Dashboard built with Power BI # 🗳️ 2023 Nigerian Presidential Election Results Dashboard ## 📊 Project Overview An interactive Power BI dashboard analysing the 2023 Nigerian Presidential Election results as announced by INEC. The report covers all 36 states and FCT, visualising vote distributions across the four major parties: APC, PDP, LP, and NNPP. --- ## 🛠️ Tools Used - **Power BI Desktop** — Report building and visualisation - **Power Query** — Data cleaning and transformation - **DAX** — Calculated columns and measures - **Microsoft Bing Maps** — Geographic visualisation --- ## 📁 Dataset - **Source:** INEC Official Presidential Election Results 2023 - **Format:** CSV - **Records:** 37 states × 4 parties = 148 rows (after unpivoting) - **Columns:** STATE, Party, Votes, Geopolitical Zone, Winner --- ## 🧹 Data Cleaning Steps (Power Query) 1. Removed AGGREGATE total row 2. Removed commas from vote numbers 3. Removed spaces from vote numbers 4. Trimmed all text columns 5. Changed party columns from Text to Whole Number 6. Converted STATE column to UPPERCASE 7. Unpivoted party columns to long format 8. Renamed columns to STATE, Party, Votes --- ## 🔗 Data Modelling - Created **Coordinates table** with Latitude and Longitude for all 37 states - Established **Many-to-One relationship** between Elections and Coordinates - Set data categories: Latitude, Longitude, State or Province - Created **_Measures table** to organise all DAX measures - Added **Geopolitical Zone** calculated column using SWITCH DAX function - Added **Winner** calculated column per state --- ## 📐 DAX Measures | Measure | Description | |---------|-------------| | Total Votes | Sum of all votes | | APC Votes | Total votes for APC nationally | | PDP Votes | Total votes for PDP nationally | | LP Votes | Total votes for LP nationally | | NNPP Votes | Total votes for NNPP nationally | | National Winner | Overall winning party | | Winning Margin | Vote gap between 1st and 2nd place | | States Won | Number of states won per p …

Visit

github.com