The goal of this project is to ingest into Fabric DataMart, clean and transform the data, create model and visualize the end result
#Data Ingestion
This project made use of DataMart in Microsoft fabric as our preferred mode of data ingestion because DataMart is efficient when connecting to different tables from different data sources. In our scenario, the two dataset we use are CSVs file located in onedrive folder.
Connection were made to the 2 dataset using Get Data and use Text/CSV as API connector

#Data Transformation
After loading the dataset transformation steps such promoting headers, renaming rows, deleting unwanted columns, removing duplicates were performed as part of the transformation model for the two table
#Data Modelling
The two tables were merge together using common keys in both common tables PlantID using Many-to_One as the relationship (Cardinality)
#Data Query
In this project we make use of two approach to query the dataset. We use the visualize quary capabilities in Semantic Model in of Microsoft Fabric to query the dataset. The folloing steps were performed.
- Ingesting from the source data
- Viewing the table
- Choosing the desired columns
- Filtering by columns
- Group values using Aggregation
Also the view query also has the ability to generate the sql codes for the steps we performed using drag and drop features of the visual query
This SQL code in picture below is a query that retrieves aggregated information about carbon emissions and fuel consumption from two tables: [CO2_2021] and [US power plant locations]. The data is grouped by various columns, and aggregate functions are used to calculate total and average emissions, as well as total fuel consumption. Here's a breakdown of the code:
Output
The examination uncovered that Texas, Florida, and Pennsylvania exhibit the highest levels of CO2 emissions. Notably, Texas surpasses Florida's CO2 emissions by a factor of two. This underscores the necessity for additional investigation into the root causes of elevated CO2 levels in the state of Texas








