You are on page 1of 21

International Trainer-Led Online Course

BATCH 21

Advance Financial
Management Power BI
Muhammad Kashif
Int’l Corporate Trainer
Data Analysis Express - DAX
Data Analysis Expressions (DAX) is a collection
of
• functions and operators
• that can be combined to build formula in
• Power BI, Analysis Services, and Power
Pivot in Excel data models.

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
Data Analysis Express – DAX
Consists on

• Measure • Operations
• Functions • Variable
• Objects • Comments

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX Syntax
How Formula is Written

A The measure name, Total Sales. E The referenced table, Sales.

B The equals sign operator (=), which indicates F The referenced column, [SalesAmount],
the beginning of the formula.

C The DAX function SUM,

D Parenthesis (), which surround an expression


that contains one or more arguments.

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX Syntax
How Formula is Written

A B C D E F G H

A The measure name, Computer Sales. E The referenced table (Object), Product.

B The equals sign operator (=), which indicates F The referenced column (Object)
the beginning of the formula , [SalesAmount]
G The particular value, Computer, as a filter
C The DAX function Calculate

H Parenthesis (), which surround an expression


D Another Measure used known Measure that contains one or more arguments.
Branching

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

1. Table Name
2. Column Name
3. Table and Column
Name

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS
How to Create 1
Measure

1 Home Tab – Calculations


Field – “New Measure”
2

2 “Right-Click” any Table –


and Click on “New
Measure”

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS
AGREGATION ITERATING

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS
AGREGATION ITERATING
SUM OF VALUES

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX

How to
calculate
the TOTAL
COST?

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
OBJECTS OPERATORS MEASURES FUNCTIONS

SUMX Function to Calculate Total Cost ITERATING

ADD the
RESULT

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
DAX
Pareto Principle
Sum , Sumx Most Business
Calculate, Relate Calculations
Filter, Divide
Count, DateAdd & ……

20 % 80%
Strictly Confidential | @ 2022 Kaizen Analytic LLP
Strictly Confidential | @ 2021 Kaizen Analytic LLP
How to Add Visual
1 Click on the “Visual”
you want add in
Dashboard 2

2 Respective Visual will


appear in the 1
Dashboard

3 Click on the “Format” 3


button to open the
panel for advance
setting of the respective
visual

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
How to New Table
1 1
Select “Enter Data” from
Home Tab

2 Provide the “Table Name”

3 Click on “Load”

4 New Table will appear in


the “Field” Panel

2
3

Strictly Confidential | @ 2022 Kaizen Analytic LLP


Strictly Confidential | @ 2021 Kaizen Analytic LLP
What-If Parameters
How to Create
Measure

1 Modelling Tab, Click on 1


“New Parameter”

2 The window of “What-If


Parameter” will open

2
3 It will create three (3)
elements:

i. Dynamic Slicer
ii. Calculated Column
3
iii. Measure linked with
Calculated Column 3

Strictly Confidential | @ 2022 Kaizen Analytic LLP


THANK
Connect to Trainer
YOU
https://www.linkedin.com/in/muhammad-kashif-aa40556/

Connect to Power BI for Finance and Business Professionals


https://www.linkedin.com/groups/12459235/
Connect to Us
https://www.linkedin.com/company/kaizen-analytic

https://www.facebook.com/KaizenAnalytic

Connect to our Learning You Tube


https://www.youtube.com/channel/UCnEArAaNc8h79DwNv3hZ5rg

Strictly Confidential | @ 2022 Kaizen Analytic LLP

You might also like