6.
DISTINCT:
The DISTINCT function returns a one-column table that contains unique
values from a specified column. It is useful for eliminating duplicate values.
Example:
Suppose you have a table with a column for product categories. You can use
the DISTINCT function to retrieve a list of unique categories. For instance,
the following DAX formula retrieves the distinct categories:
= DISTINCT(Products[Category])
7. CONCATENATE:
The CONCATENATE function combines multiple text strings into a single
text string. It is handy for creating concatenated fields.
Example:
Suppose you have a table with columns for first and last names. You can use
the CONCATENATE function to create a full name field. For instance, the
following DAX formula creates a full name field:
=CONCATENATE(Customers[First Name], " ", Customers[Last Name])
8. LEFT/RIGHT:
The LEFT and RIGHT functions extract a specified number of characters
from
the left or right side of a text string, respectively.
Example:
Suppose you have a table with a column for phone numbers. You can use the
LEFT and RIGHT functions to extract the area code and last four digits,
respectively. For instance, the following DAX formulas extract the area code
and last four digits:
=LEFT(Orders[Phone Number], 3)