Guide to DAX Ch 2: Introducing DAX Flashcards
The table name needs to be included when referencing a measure or a calculated column?
Calculated column
What is the answer and data type of the following expression:
“5”+”4”
9, integer
T/F: A variant data type can be used as a data type for a column in a regular table.
False
When should you use calculated columns (3 items)?
- To place items in a slicer
- Define expression that is strictly bound to the current row.
- Categorize text or numbers.
When should you use a measure?
- To display calculation values that reflect user selections, and the values need to be presented as aggregates in a report.
What are 3 types of errors that may appear in DAX?
- Conversion
- Arithmetic
- Empty/missing values
Describe a conversion error.
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.
Describe an arithmetic error.
Mathematical operation error like taking the sqrt of a negative value.
Give some examples of aggregation functions.
Sum, Average, min, max
Give some examples of logical functions.
Switch, If, IfError, And, Not, Or, True, False
Give some examples of information functions.
ISBlank, IsError, IsLogical, IsNonText, IsNumber, IsText
Give some examples of mathematical functions.
Abs, Exp, Fact, LN, Log, Log10, PI, Power, Sign, SQRT, GCD, LCM
Give some examples of Trigonometric functions.
COS, COSH, COT COTH, SIN, SINH, TAN, TANH
Give some examples of text functions.
Concatenate, exact, find, fixed, format, left, len, lower, mid, replace, rept, right, search, substitute, trim, upper, value
Give some examples of conversion functions.
INT, Currency, Date, Time, DateTime