0% found this document useful (0 votes)
112 views18 pages

DAX Cheat Sheet

The document contains a comprehensive list of DAX (Data Analysis Expressions) functions used in data analysis and reporting within Power BI and Excel. It includes functions for date manipulation, text processing, logical operations, statistical calculations, financial analysis, and data modeling. Each function is presented with its syntax and context for use, making it a reference guide for users working with data in these applications.

Uploaded by

Dhiraj Patil
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)
112 views18 pages

DAX Cheat Sheet

The document contains a comprehensive list of DAX (Data Analysis Expressions) functions used in data analysis and reporting within Power BI and Excel. It includes functions for date manipulation, text processing, logical operations, statistical calculations, financial analysis, and data modeling. Each function is presented with its syntax and context for use, making it a reference guide for users working with data in these applications.

Uploaded by

Dhiraj Patil
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/ 18

PREM MANDAL

TODAY: TODAY()
NOW: NOW()
YEAR: YEAR('Table'[Date])
MONTH: MONTH(‘Table'
[Date])
DAY: DAY ('Table'[Date])
DATEDIFF: DATEDIFF('Table'
[StartDate], 'Table'
[EndDate], DAY)
EOMONTH: EOMONTH('Table'
[Date],0)
FORMAT: FORMAT('Table'
[Date], “yyyy-mm-dd”)

PREM MANDAL
CONCATENATE: CONCATENATE(
'Table' [Text1],'Table'
[Text2])
LEFT: LEFT('Table'[Text], 3)
RIGHT: RIGHT('Table' [Text], 5)
LEN: LEN('Table'[Text])
UPPER: UPPER( 'Table' [Text])
LOWER: LOWER('Table' [Text])
TRIM: TRIM('Table'[Text])
SEARCH: SEARCH("keyword"',
'Table'[Text])
CONTAINSSTRING: CONTAINSSTRING(
'Table' [Text], "keyword")
LEFT: LEFT ('Table' [Text], 3)
RIGHT: RIGHT( 'Table' [Text],3)

PREM MANDAL
IF: IF( 'Table'[Column] >
10, "Yes", "No")|
AND: AND('Table'[Column1] >
5, 'Table'[Column2] < 10)
OR: OR('Table' [Column1] >
5, 'Table' [Column2] < 10)
NOT: NOT( 'Table' [Flag]) |
SWITCH: SWITCH('Table'
[Category],"A",1,"B",2,0)

PREM MANDAL
AVERAGEX: AVERAGEX(
'Table', 'Table' [Column])
COUNT: COUNT ( 'Table'
(Column]) |
COUNTA: COUNTA (' Table'
[Column])
COUNTAX: COUNTAX( 'Table',
'Table' [Column])
STDEV.P: STDEV.P( 'Table'
[Column])
VAR.P: VAR.P( 'Table'
(Column])

PREM MANDAL
SUMX: SUMX(Sales,
Sales[Quantity] *
Sales[Price])
AVERAGE: AVERAGE ( 'Table'
[Column ])
MIN: MIN('Table'[Column])
MAX: MAX('Table' [Column])
ROUND: ROUND('Table'
[Number], 2)
ABS: ABS('Table'[Number])
EXP: EXP(
'Table'[Exponent])
LOG: LOG('Table'[Number],10

PREM MANDAL
TOTALYTD: TOTALYTD(SUM ('Table' [Sales]),
'Date'[Date])
SAMEPERIODLASTYEAR: CALCULATE(SUM('Table'
[Sales]).
SAMEPERIODLASTYEAR ('Date' [Date]) )
YTD: CALCULATE (SUM('Table' [Sales]),
ALL('Date'), 'Date' [Date] <= MAX ( 'Date'
[Date]) )
QUARTER: QUARTER('Date' [Date])
MONTH: MONTH 'Date' [Date])
WEEKDAY: WEEKDAY ('Date' [Date], 2)
CALENDAR: CALENDAR (DATE (2023, 1, 1),
DATE(2023, 12, 31))
DATESBETWEEN: DATESBETWEEN( 'Date' [Date],
DATE(2022, 1, 1), DATE (2022, 12, 31))
TOTALMTD: TOTALMTD(SUM( 'Table' [Sales]),
'Date' [Date])
FIRSTDATE: FIRSTDATE ('Date' [Date])
LASTDATE: LASTDATE (('Date' [Date])

PREM MANDAL
NORM. DIST: NORM. DIST
(1.96, 0, 1, TRUE) NORM.
INV: NORM. INV (0.95, 0, 1)
BINON. DIST: BINOM. DIST(3,
10, 0.5, FALSE) POISSON.
DIST: POISSON. DIST(2, 5,
FALSE)

PREM MANDAL
PV: PV(0.05, 10, 1000, 0, 0)
FV: FV(0.05, 10, -100, 0, 0)
MPV: NPV(0.1, CashFlow1,
CashFlow2, CashFlow3)
IRR: IRR(CashFlows)
TOTALYTD: TOTALYTD(SUM(
'Table' [Revenue]), 'Date'
[Date])
CLOSINGBALANCEMONTH:
CLOSINGBALANCEMONTH ( 'Table'
[Revenue],'Date' [Date])
OPENINGBALANCEMONTH:
OPENINGBALANCEMONTH (' Table'
[Revenue],'Date'[Date])

PREM MANDAL
RANKX: RANKX('Table',
'Table' [Sales], , DESC)
TOPN: TOPN(5, 'Table',
'Table'[Sales], DESC)
RANK.EQ: RANK.EQ( 'Table'
[Sales], 'Table' [Sales],
DESC)

PREM MANDAL
T.TEST: T. TEST('Group' [Data],
'Group2' [Data], 2, 1)
ANOVA: ANOVA( 'Table' [Values],
'Table' [Category])
CHISQ. DIST: CHISQ. DIST (3.84,
2, FALSE)
PERCENTILE.INC: PERCENTILE. INC(
'Table' [Values], 0.75)
PERCENTILE.EXC: PERCENTILE.
EXC('Table' [Values], 0.75)
RANK. AVG: RANK. AVG( 'Table'
[Sales], 'Table' [Category], 1)
KEEPFILTERS:
KEEPFILTERS(CALCULATE (SUM(
'Table' [Sales]), 'Table'
[Category] = "A"))

PREM MANDAL
VALUES: VALUES('Table'[Column ])
ALLSELECTED: ALLSELECTED('Table')
ADDCOLUMNS: ADDCOLUMNS ('Table',
"Revenue", 'Table' [Quantity] * 'Table'
[Price])
SUMMARIZE: SUMMARIZE ('Table', 'Table'
[Category], "Total Sales", SUM( 'Table'
[Sales]))
ROLLUP: ROLLUP('Date', 'Date' [Year],
'Date' [Quarter], 'Date' [Month])
KEEPFILTERS: KEEPFILTERS
(CALCULATETABLE('Table', 'Table'
[Column] > 100))
SELECTCOLUMNS: SELECTCOLUMNS( 'Table',
'Table' [Column1], 'Table' [Column2])
SUMMARIZECOLUMNS: SUMMARIZECOLUMNS(
'Table' [Column1], 'Table' [Column2],
"Total Sales", SUM(‘Table’[Sales]))

PREM MANDAL
PATH: PATH('Table', 'Table'
[ParentID], 'Table' [ID])
PATHITEM: PATHITEM('Table'
[Path], 1)
PATHLENGTH: PATHLENGTH('Table'
[Path])
ISFILTERED: IF(ISFILTERED
('Table' [Column]), "Filtered",
"Not Filtered")

PREM MANDAL
PREDICT: PREDICT('Table', 'Table'
[Value], FILTER('Table', 'Table'
[Date] > DATE(2022, 1, 1)))
COVARIANCE.P: COVARIANCE.P(
'Table1' [Values], 'Table2'
[Values])
CORRELATION: CORRELATION(
'Table1'[Values], 'Table2'[Values])
RANK.EQ: RANK.EQ( 'Table' [Sales],
'Table' [Sales], DESC,'Table'
[Category])
PREDICT: PREDICT('Table', 'Table'
[Value], FILTER('Table','Table'
[Date] > DATE(2022, 1, 1)))
COVARIANCE.P: COVARIANCE.P('Table1'
[Values], 'Table2' [Values])

PREM MANDAL
ISBLANK: IF (ISBLANK ('Table'
[Column]), "Blank", "Not
Blank")
ISERROR: IF(ISERROR(1/0),
"Error", "No Error")
TYPEOF: TYPEOF ( 'Table'
[Column], INTEGER)

PREM MANDAL
ISBLANK: IF (ISBLANK ('Table'
[Column]), "Blank", "Not
Blank")
ISERROR: IF(ISERROR(1/0),
"Error", "No Error")
TYPEOF: TYPEOF ( 'Table'
[Column], INTEGER)

PREM MANDAL
EARLIER: CALCULATE (SUM(
'Table' [Sales]), 'Table'
[Date] = EARLIER ('Table'
(Date]) - 1)
FILTERS: FILTERS( 'Table'
[Category])
USERELATIONSHIP:
USERELATIONSHIP(' Table1'
[Column], 'Table2'
[Column])

PREM MANDAL
Found
Helpful ?

Follow for more!

PREM MANDAL

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