Learn DAX Fundamentals in 10 Minutes | Step-by-Step Guide

Learn DAX Fundamentals in 10 Minutes | Step-by-Step Guide

Introduction to DAX Fundamentals

Overview of the Video

  • The video introduces the fundamentals of DAX (Data Analysis Expressions) in Power BI, covering 8 formulas ranging from simple to complex functions.
  • A dataset related to a beverage distribution company is used for demonstration, including geographical and financial information.

Creating Basic Measures

  • The first measure created is "Total Revenue," calculated using the SUM function on the revenue column.
  • To visualize this measure, it must be added to a Matrix visual in Power BI after creation.

Unique Brands Calculation

  • The second measure, "Unique Brands," uses the DISTINCTCOUNT function to count unique beverage brands sold.
  • Comments can be added within DAX formulas by using Shift + Enter and typing comments prefixed with two dashes.

Advanced Calculations

Profit Calculation

  • A new measure called "Profit" is created by subtracting total expenses from total revenue using SUM functions.

Profit Margin Calculation

  • The profit margin is calculated as profit divided by revenue; however, the DIVIDE function is used to handle potential division by zero errors safely.

Transitioning from Measures to Calculated Columns

Understanding Calculated Columns

  • The video explains that calculated columns evaluate each row individually rather than aggregating data like measures do.

Combining Data into New Columns

  • A new calculated column named "Region and State" combines region and state data using an ampersand (&), ensuring proper spacing between values.

Categorizing Shipments

Shipment Size Classification

  • A new column categorizes shipments as "small" or "large" based on unit sales using an IF statement for logical testing.

Three-Tiered Shipment Categories

  • An advanced IF statement creates three categories: small, medium (5000 - 10000 units), and large (over 10000 units).

Filtering Revenue Data

Specific Beverage Revenue Calculation

  • A measure called "Sprite Revenue" calculates total revenue specifically for Sprite using the CALCULATE function with a filter condition.

Multiple Beverage Revenue Calculation

  • The formula is modified to calculate revenue for both Sprite and Fanta by incorporating an OR condition within the filter.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

Learn the fundamentals of DAX expressions in Power BI in just 10 minutes. πŸ”₯ Check out Ahrefs Webmaster Tools for FREE here: https://ahrefs.com/awt πŸ†“ DOWNLOAD the FREE dataset for this video: https://view.flodesk.com/pages/641dbeaaa6bca6c87f22ef4a LEARN: πŸ“ˆ The Complete Finance & Valuation Course: https://www.careerprinciples.com/courses/finance-valuation-course πŸ‘‰ Excel for Business & Finance Course: https://www.careerprinciples.com/courses/excel-for-business-finance πŸ§‘β€πŸ’» The Data Analyst Program: https://www.careerprinciples.com/career-track/the-data-analyst-program πŸš€ All our courses: https://www.careerprinciples.com/all-courses In this Power BI DAX tutorial, you learn how to use DAX (data analysis expressions) step by step. Once we've uploaded the dataset into Power BI, we can start with the expressions. In total, we cover 8 types of expressions. We also cover the difference between a measure and a calculated column. First, we do a simple SUM, then we do a DISTINCTCOUNT, followed by a measure with. multiple functions. Fourth, we use the DIVIDE function, which accounts for divided by zero errors. Then, we hop into the data view to use calculated columns to calculate the profit and profit margin. Then, we use logical functions like an IF, and a nested IF statement to categorize values. Finally, we use the CALCULATE function to find the revenue filtered by beverage brand. SOCIALS: 🎬 My Company YouTube Channel: https://www.youtube.com/@careerprinciples πŸ“Έ Instagram - https://www.instagram.com/careerprinciples/?hl=en 🀳 TikTok - https://www.tiktok.com/@career_principles πŸ§‘β€πŸ’» LinkedIn - https://www.linkedin.com/company/careerprinciples/ β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬ Chapters: 0:00​ -​ Intro 0:40​ - SUM Function 1:49​ - DISTINCTCOUNT 3:00​ - Multiple Functions 3:51​ - DIVIDE 6:00 - Concatenate 7:34 - IF Function 8:48 - Multiple IFs 9:54 - CALCULATE