0
0
Power BIbi_tool~20 mins

Splitting and merging columns in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Master of Splitting and Merging Columns
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate the number of unique customers after splitting a full name column

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?

Power BI
UniqueLastNames = DISTINCTCOUNT('Customers'[LastName])
AUniqueLastNames = COUNT('Customers'[LastName])
BUniqueLastNames = COUNTROWS(VALUES('Customers'[FullName]))
CUniqueLastNames = DISTINCTCOUNT('Customers'[LastName])
DUniqueLastNames = DISTINCTCOUNT('Customers'[FirstName])
Attempts:
2 left
💡 Hint

Think about which column contains the last names after splitting.

visualization
intermediate
2:00remaining
Best visualization to show merged city and state data

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?

AA line chart showing sales trend over time by Location
BA pie chart showing sales percentage by Location
CA scatter plot with Location on X axis and sales on Y axis
DA bar chart with Location on the axis and sales as values
Attempts:
2 left
💡 Hint

Think about which chart clearly compares sales amounts by categories.

data_modeling
advanced
2:30remaining
Handling merged columns for filtering in Power BI

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?

AKeep only the merged column and use text filters on it
BKeep original separate columns and create the merged column as a calculated column
CRemove original columns and split the merged column back when filtering
DCreate a disconnected table with all unique merged values for filtering
Attempts:
2 left
💡 Hint

Think about how to keep flexibility for filtering on both category and subcategory.

🔧 Formula Fix
advanced
2:00remaining
Identify the error in this DAX formula for splitting a column

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?

AIt returns an error when there is no space in FullName
BIt causes a syntax error due to missing comma
CIt returns the first name with an extra space at the end
DIt returns the full name without splitting
Attempts:
2 left
💡 Hint

Consider what happens if FIND does not find a space.

🧠 Conceptual
expert
3:00remaining
Best practice for merging columns with different data types

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?

AConvert the Date column to text format before merging
BMerge columns directly without conversion; Power BI handles types automatically
CConvert the Text column to date format before merging
DCreate a new numeric column representing date as a number and merge with text
Attempts:
2 left
💡 Hint

Think about how Power BI treats different data types when merging columns.