0% found this document useful (0 votes)
28 views

ISNUMBER Function in Power BI

The document provides information about a Power BI trainer and describes the functions ISNUMBER, CROSSFILTER, USERELATIONSHIP, SAMEPERIODLASTYEAR, LEN, REPLACE, and SUBSTITUTE by defining their syntax and examples.
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)
28 views

ISNUMBER Function in Power BI

The document provides information about a Power BI trainer and describes the functions ISNUMBER, CROSSFILTER, USERELATIONSHIP, SAMEPERIODLASTYEAR, LEN, REPLACE, and SUBSTITUTE by defining their syntax and examples.
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/ 3

Trainer Name: Jabivulla Vanalli

Email: [email protected]
Mobile: +91 7829533577

YouTube Channel: Power BI Real-time


Course Duration: 30 Hours

ISNUMBER function in Power BI:


Checks whether a value is a number, and returns TRUE or FALSE.

Syntax:

ISNUMBER(<value>)

Examples:

//RETURNS: Is number

= IF(ISNUMBER(0), "Is number", "Is Not number")

//RETURNS: Is number

= IF(ISNUMBER(3.1E-1),"Is number", "Is Not number")

//RETURNS: Is Not number

= IF(ISNUMBER("123"), "Is number", "Is Not number")

Official Page: https://docs.microsoft.com/en-us/dax/isnumber-function-dax

CROSSFILTER function in Power BI:


Specifies the cross-filtering direction to be used in a calculation for a relationship that exists
between two columns

Syntax:

CROSSFILTER(<columnName1>, <columnName2>, <direction>)

Examples:
CALCULATE([Distinct Count of ProductKey],
CROSSFILTER(FactInternetSales[ProductKey], DimProduct[ProductKey] , Both))

Official Page: https://docs.microsoft.com/en-us/dax/crossfilter-function

USERELATIONSHIP function in Power BI:


Specifies the relationship to be used in a specific calculation as the one that exists between
columnName1 and columnName2.

Syntax:

USERELATIONSHIP(<columnName1>,<columnName2>)

Examples:

= CALCULATE(SUM(InternetSales[SalesAmount]),
USERELATIONSHIP(InternetSales[ShippingDate], DateTime[Date]))

Official Page: https://docs.microsoft.com/en-us/dax/userelationship-function-dax

SAMEPERIODLASTYEAR function in Power BI:


Returns a table that contains a column of dates shifted one year back in time from the dates
in the specified dates column, in the current context.

Syntax:

SAMEPERIODLASTYEAR(<dates>)

Example:

= CALCULATE(SUM(ResellerSales_USD[SalesAmount_USD]),
SAMEPERIODLASTYEAR(DateTime[DateKey]))

Official Page: https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax

LEN function in Power BI:


Returns the number of characters in a text string.

Syntax:

LEN(<text>)
Examples:

= LEN([AddressLine1])+LEN([AddressLin2])

Official Page: https://docs.microsoft.com/en-us/dax/len-function-dax

REPLACE function in Power BI:


EPLACE replaces part of a text string, based on the number of characters you specify, with a
different text string.

Syntax:

REPLACE(<old_text>, <start_num>, <num_chars>, <new_text>)

Examples:

= REPLACE('New Products'[Product Code],1,2,"OB")

Official Page: https://docs.microsoft.com/en-us/dax/replace-function-dax

SUBSTITUTE function in Power BI:


Replaces existing text with new text in a text string.

Syntax:

SUBSTITUTE(<text>, <old_text>, <new_text>, <instance_num>)

Examples:

=SUBSTITUTE([Product Code], "NW", "PA")

Official Page: https://docs.microsoft.com/en-us/dax/substitute-function-dax

You might also like