This data analysis session covers the fundamentals of data modeling in PowerBI, focusing on preparing multiple datasets for analysis.

Data Preparation and Transformation

Before modeling, the instructor emphasizes the importance of data cleaning in the Power Query Editor.

  • Loading Data: Multiple datasets (Orders, Customers, and Cookie Types) are imported as Excel workbooks.
  • Data Cleaning: The instructor demonstrates key steps:
    • Changing data types (e.g., units sold to whole numbers, revenue and cost to currency).
    • Using “Replace Values” to fix abbreviated data (e.g., state names).
    • Removing unnecessary columns.
  • Best Practices: Unlike Excel, Power Query Editor requires deleting applied steps in the query settings panel to “undo” actions.

Data Modeling Concepts

 

Data modeling is presented as a critical skill for ensuring accurate calculations and efficient reports.

  • Fact vs. Dimension Tables:
    • Fact Table: Contains numerical data used for calculations (e.g., the Orders table) and typically has more rows.
    • Dimension Table: Contains descriptive information used for filtering and grouping (e.g., Customers and Cookie Types).
  • Primary Keys: These are unique identifiers within a table (e.g., Customer ID) used to link datasets together.
  • Schema Design:
    • Star Schema: Recommended by the instructor, where dimension tables are connected directly to a central fact table.
    • Snowflake Schema: An extension of the star schema where dimension tables may also link to one another.

Advanced Analysis and Future Steps

The session concludes by explaining why connections are necessary:

  • Calculations (DAX): While visualizations can sometimes be created without formal relationships, Data Analysis Expressions (DAX) rely heavily on a robust data model to provide accurate measures and calculated columns.
  • Next Steps: The instructor introduces an assignment to build a dashboard using the three datasets, incorporating at least five KPIs, six visuals, and necessary filters. Future classes will focus on DAX formulas and iteration functions.