Guide to DAX Ch 2: Introducing DAX Flashcards

1
Q

The table name needs to be included when referencing a measure or a calculated column?

A

Calculated column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the answer and data type of the following expression:

“5”+”4”

A

9, integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

T/F: A variant data type can be used as a data type for a column in a regular table.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When should you use calculated columns (3 items)?

A
  1. To place items in a slicer
  2. Define expression that is strictly bound to the current row.
  3. Categorize text or numbers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When should you use a measure?

A
  1. To display calculation values that reflect user selections, and the values need to be presented as aggregates in a report.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are 3 types of errors that may appear in DAX?

A
  1. Conversion
  2. Arithmetic
  3. Empty/missing values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe a conversion error.

A

It’s when 2 incompatible data types are in an expression such that nothing can be evaluated. For example, you can’t add a string to an integer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe an arithmetic error.

A

Mathematical operation error like taking the sqrt of a negative value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give some examples of aggregation functions.

A

Sum, Average, min, max

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Give some examples of logical functions.

A

Switch, If, IfError, And, Not, Or, True, False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Give some examples of information functions.

A

ISBlank, IsError, IsLogical, IsNonText, IsNumber, IsText

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Give some examples of mathematical functions.

A

Abs, Exp, Fact, LN, Log, Log10, PI, Power, Sign, SQRT, GCD, LCM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give some examples of Trigonometric functions.

A

COS, COSH, COT COTH, SIN, SINH, TAN, TANH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Give some examples of text functions.

A

Concatenate, exact, find, fixed, format, left, len, lower, mid, replace, rept, right, search, substitute, trim, upper, value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Give some examples of conversion functions.

A

INT, Currency, Date, Time, DateTime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Give some examples of Date and Time functions.

A

DateValue, Date, Time, Now, DateTime, Hour, Minute,Today, Weekday, Year, WeekNum, YearFrac

17
Q

Give some examples of relational functions.

A

Related, RelatedTable

18
Q

When do you use the Related function, and when do you used RelatedTable?

A
  1. Related - when you are on the many side needing a column from the 1 side of a relationship.
  2. Relatedtable - when you are on the 1 side needing columns from the many side of a relationship.
19
Q

When are calculated columns computed? Do the values change depending on user selection?

A

At data refresh time. No.

20
Q

When are measures computed? Do the values change depending on user selection?

A

At query time. Yes.