Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
DAX (Data Analysis Expressions) is the formula language of Power Pivot and Microsoft Power BI. While DAX resembles standard Excel formulas, it operates on a fundamentally different paradigm based on tables, columns, row context, and filter context.
+-----------------------------------+-----------------------------------+ | Calculated Column | Explicit DAX Measure | +-----------------------------------+-----------------------------------+ | Evaluated row-by-row during data | Evaluated on the fly inside the | | load / refresh. | Pivot Table based on filters. | | Consumes valuable RAM memory. | Consumes zero RAM when idle. | | Visible in the table grid. | Lives in the Calculation Area. | | Example: =[Price] * [Quantity] | Example: =SUM(Sales[Revenue]) | +-----------------------------------+-----------------------------------+
(Iterates through FactSales, multiplies Quantity by Price for each row, and sums the total!)
CALCULATE is the single most powerful function in business intelligence. It evaluates an expression while modifying or overriding the current filter context:
Even if a user slices the table by "Furniture", this measure evaluates strictly for "Technology"!
To calculate an employee's contribution to total nationwide sales, you must divide their sales by the grand total, ignoring employee filters:
(The ALL() function strips away all filters, providing the true denominator grand total! The DIVIDE() function handles division by zero gracefully).
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Using Relationships (Star Schema & Cardinality) | Developer Tab & Macro Security Settings |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.