Page 34 - DAX-Formula-Reference-Guide-Enterprise-DNA_Neat
P. 34
DAX Formulas Reference Guide | Related Functions
USERELATIONSHIP Function (DAX)
Specifies the relationship to be used in a specific calculation as the one that exists
between columnName1 and columnName1.
Syntax: USERELATIONSHIP(<columnName1>,<columnName2>)
Parameter Definition
columnName1
Example:
=CALCULATE(SUM)(InternetSales[SalesAmount]),USERELATIONSHIP(InternetSales[Shippin
gDate],DateTime[Date[))
VALUES Function (DAX)
Returns a one-column table that contains the distinct values from the specified table
or column. In other words, duplicate values are removed and only unique values are
returned.
Syntax: VALUES(<TableNameOrColumnName>)
Parameter Definition
table or column The table or column from which unique values are to be returned.
Return Value:
A column of unique values.
Example:
The following formula counts the number of unique invoices (sales orders), and produces
the following results when used in a report that includes the Product Category Names.
=COUNTROWS(VALUES(‘InternetSales_USD’[SalesOrderNumber]))
+64 21 164 5508 | info@enterprisedna.co 34

