0% found this document useful (0 votes)
94 views10 pages

Mastering DAX in Power BI

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views10 pages

Mastering DAX in Power BI

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

(Data Analysis Expressions)

What is DAX?

DAX (Data Analysis


Expressions)
is the powerful formula
language behind Power BI

Ridwan Parvez
Data Analyst
Getting Started with DAX
Key Functions

DAX is simple yet powerful! Here


are some key functions to start

SUM(): Adds up a column’s values.

AVERAGE(): Calculates the average of


values

IF(): Performs logic-based calculations.

Example:
Total Sales = SUM(Sales[SalesAmount])

Ridwan Parvez
Data Analyst
Row vs. Filter Context

DAX operates in two essential contexts

Row Context: Applies calculations row by


row.

Filter Context: Dynamically filters data


based on visual elements in Power BI.

Example:
Sales in 2024 =
CALCULATE(SUM(Sales[SalesAmount]),
Sales[Year] = 2024)

Ridwan Parvez
Data Analyst
Your Go-To DAX Functions

Here’s a quick reference for the most


commonly used DAX functions

Aggregation Functions
SUM(): Adds values in a column.
AVERAGE(): Calculates average of values.
COUNT(): Counts rows with numbers.
DISTINCTCOUNT(): Counts unique values.
MAX(): Returns the largest value.
MIN(): Returns the smallest value.
SUMX(): Sums results of an expression
over a table.
Logical Functions
IF(): Conditional logic test.
SWITCH(): Evaluates multiple conditions
and returns the first match.

Ridwan Parvez
Data Analyst
Mastering the
CALCULATE Function

The most powerful DAX function,


CALCULATE(), modifies filter contexts
and transforms data interactions

Use it to analyze data dynamically based


on conditions.

Example: "Calculate total sales for a


specific region or date range."

Example:
Sales in 2024 =
CALCULATE(SUM(Sales[SalesAmount]),
Sales[Year] = 2024)

Ridwan Parvez
Data Analyst
Date-Based Calculations
with DAX

Create time-intelligent metrics, such as


year-to-date (YTD) and month-over-
month (MoM) performance
comparisons.

• DATESYTD(): Calculates year-to-date


data.
• PREVIOUSMONTH(): Analyzes data from
the previous month.

Ridwan Parvez
Data Analyst
Date-Based Calculations
with DAX

Create time-intelligent metrics, such as


year-to-date (YTD) and month-over-
month (MoM) performance
comparisons.

DATESYTD(): Calculates year-to-date


data.
PREVIOUSMONTH(): Analyzes data from
the previous month.

Ridwan Parvez
Data Analyst
Ready to dive
deeper into DAX?

Let’s connect and explore


how DAX can revolutionize
your
data analytics!

Ridwan Parvez
Data Analyst
Any
Question

Ridwan Parvez
Data Analyst

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy