Power Bi Formulas

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

DAX formulas for

Power BI
Catego Formula Syntax
ry


SUM =SUM(Column)


AVERAGE =AVERAGE(Column)


MAX =MAX(Column)


MIN =MIN(Column)

COUNT =COUNT(Column)
Basic
COUNTA =COUNTA(Column)

COUNTROWS =COUNTROWS(Column)

DISTINCTCOUNT =DISTINCTCOUNT(Column)

SUMX =SUMX(Table;Expression)

AVERAGEX =AVERAGEX(Table;Expression)


MAXX =MAXX(Table;Expression)

Iteracti MINX =MINX(Table;Expression)


ve
COUNTX =COUNTX(Table;Expression)

IF =IF(Test;True; False)

IFERROR =IFERROR(Expression;Error)


AND =E(Condition1; Condition2)


OR =OU(Condition 1; Condition 2)


TRUE =TRUE()

Logic FALSE =FALSE()


CONCATENATE =CONCATENATE(Column1;Column2)

LEFT =LEFT(Column1; Number of chatacters)

RIGHT =RIGHT(Column1; Number of chatacters)

MID =MID(Column1; Intial position; Number of chatacters)

=UPPER(Column1)
UPPER

LOWER =LOWER(Column1)


LEN =LEN(Column1)


SEARCH =SEARCH(Text; Column1; [Intial position]; [Value if don't
find])
Text
SUBSTITUTE
=SUBSTITUTE(Column1;Old text; New text; [Occurrance])

TRIM =TRIM(Column1)

DAY =DAY(Column1)

MONTH =MONTH(Column1)

YEAR =YEAR(Column1)

=TODAY()
TODAY
=WEEKDAY(Column1;[Type])
WEEKDAY


WEEKNUM =WEEKNUM(Column1;[Type])


HOUR =HOUR(Column1)


MINUTE =MINUTE(Column1)

Date SECOND =SECOND(Column1)

NOW =NOW()

DATEDIFF =DATEDIFF(Date1; Date2; Type)

CALCULATE =CALCULATE(Expression; Filter1; [Filter2];...)


FILTER =FILTER(Table;Filter1;[Filter2];...)

Filter ALL =ALL(Table;[Column1];...)

RELATED =RELATED(Column1)

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