0% found this document useful (0 votes)
10 views1 page

HRS 3

The document explains three DAX functions: DISTINCT, CONCATENATE, and LEFT/RIGHT. DISTINCT retrieves unique values from a specified column, CONCATENATE combines text strings into one, and LEFT/RIGHT extract characters from the left or right side of a text string. Examples are provided for each function to illustrate their usage with product categories, full names, and phone numbers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

HRS 3

The document explains three DAX functions: DISTINCT, CONCATENATE, and LEFT/RIGHT. DISTINCT retrieves unique values from a specified column, CONCATENATE combines text strings into one, and LEFT/RIGHT extract characters from the left or right side of a text string. Examples are provided for each function to illustrate their usage with product categories, full names, and phone numbers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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)

You might also like