You have a table with a column FullName containing first and last names separated by a space (e.g., "John Smith"). You split this column into FirstName and LastName. Then you want to count unique customers by LastName.
Which DAX measure correctly counts unique last names?
UniqueLastNames = DISTINCTCOUNT('Customers'[LastName])Think about which column contains the last names after splitting.
After splitting, the LastName column holds last names. Using DISTINCTCOUNT on it counts unique last names correctly. Option C counts unique full names, not last names. Option C counts all rows, not distinct. Option C counts unique first names, not last names.
You merged two columns City and State into one column Location (e.g., "Seattle, WA"). You want to show sales by location on a report.
Which visualization type is best to clearly show sales by each location?
Think about which chart clearly compares sales amounts by categories.
A bar chart is best to compare sales amounts by each location category. Pie charts are less clear with many categories. Line charts show trends over time, which is not the goal here. Scatter plots are for numeric relationships, not categories.
You merged ProductCategory and ProductSubcategory into a single column CategoryFull with format "Category - Subcategory". You want to enable filtering by either category or subcategory in reports.
What is the best data modeling approach to support filtering by both parts?
Think about how to keep flexibility for filtering on both category and subcategory.
Keeping original columns and creating a merged calculated column allows filtering by category or subcategory independently, while also showing the merged value. Option B loses filtering flexibility. Option B is inefficient and error-prone. Option B complicates filtering without clear benefit.
You want to extract the first word from a FullName column using this DAX formula:
FirstName = LEFT('Table'[FullName], FIND(" ", 'Table'[FullName]))What error will this formula cause?
Consider what happens if FIND does not find a space.
If FullName has no space, FIND(" ", 'Table'[FullName]) returns an error, causing the whole formula to error. Option A is incorrect because the formula includes the space. Option A is wrong; syntax is correct. Option A is wrong; it does not return full name.
You want to merge a Date column and a Text column into one combined column in Power BI. What is the best practice to avoid errors and maintain data quality?
Think about how Power BI treats different data types when merging columns.
To merge columns with different data types, convert the Date column to text first. This avoids errors and ensures the merged column is consistent text. Option A can cause errors or unexpected results. Option A is invalid if text is not a date. Option A complicates the model unnecessarily.