2 Calculated Columns using DAX .docx Flashcards
What is the purpose of Calculated Columns in Power BI?
Add new columns to existing tables based on specific needs
Calculated Columns enhance data analysis by providing additional calculated data points.
What formula language is used to create Calculated Columns?
DAX
DAX stands for Data Analysis Expressions, a powerful formula language in Power BI.
What is the first step to create a Calculated Column in Power BI?
Access the table view
This step involves navigating to the specific table where the new column will be added.
What option must you select to create a new column?
New Column
This option can be accessed through a menu or an icon in Power BI.
What must be defined after naming a new column?
DAX formula
The formula defines the calculation that will populate the new column.
Fill in the blank: A common example of a calculated column is ‘DaysTakenToShip’, which uses the _______ function.
DATEDIFF
This function calculates the difference between two date columns.
What is meant by ‘Row Context’ in Calculated Columns?
Calculated for each row in the table
The DAX formula is evaluated independently for every single row.
Why is it important to ensure data types are compatible in DAX formulas?
To achieve the desired outcome
For example, using DATEDIFF requires date type columns.
What performance consideration should be taken into account when using Calculated Columns?
Excessive use can impact performance
Calculated Columns are stored in memory, which can affect the overall efficiency of the Power BI model.
When might measures be preferred over Calculated Columns?
For aggregations
Measures can be more efficient for certain types of analysis.
What types of functions are available in DAX beyond DATEDIFF?
Mathematical, logical, text, and date functions
These functions provide extensive capabilities for data manipulation.
What features does the formula bar in Power BI Desktop offer?
IntelliSense and syntax highlighting
These features assist users in writing DAX formulas more effectively.
True or False: Error handling functions like IFERROR can be used in Calculated Column formulas.
True
These functions help manage potential errors in the calculations.