Bird
Raised Fist0
Power BIbi_tool~20 mins

Naming conventions in Power BI - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Naming Conventions Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Why use consistent naming conventions in Power BI?

Imagine you join a team project with many Power BI reports. Why is it important to use consistent naming conventions for tables, columns, and measures?

AIt helps everyone understand and find data easily, reducing confusion.
BIt makes the report run faster by optimizing queries.
CIt automatically fixes errors in data relationships.
DIt changes the colors of visuals to match company branding.
Attempts:
2 left
💡 Hint

Think about teamwork and clarity when many people work on the same files.

❓ dax_lod_result
intermediate
1:30remaining
What is the result of this measure with proper naming?

Given a table named Sales with columns Sales[Amount] and Sales[Region], what is the result of this measure?

TotalSales = SUM(Sales[Amount])

Assuming the Sales table has these rows:

  • Region: East, Amount: 100
  • Region: West, Amount: 200
  • Region: East, Amount: 150
Power BI
TotalSales = SUM(Sales[Amount])
A350
B150
C450
D200
Attempts:
2 left
💡 Hint

SUM adds all values in the column.

🔧 Formula Fix
advanced
2:00remaining
Identify the naming issue causing this DAX error

This measure returns an error. What is the naming problem?

SalesAmount = SUM(Sale[Amount])

The table is actually named Sales, not Sale.

Power BI
SalesAmount = SUM(Sale[Amount])
AThe table name 'Sale' does not exist; it should be 'Sales'.
BThe column 'Amount' is misspelled; it should be 'Amounts'.
CSUM cannot be used on numeric columns.
DMeasure names cannot contain uppercase letters.
Attempts:
2 left
💡 Hint

Check the exact table names in your data model.

❓ visualization
advanced
1:30remaining
Choose the best naming convention for a measure showing average sales

You want to create a measure that calculates the average sales amount. Which naming convention is best for clarity and consistency?

AMeasure1
Baverage_sales
CsalesAvg
DAvgSalesAmount
Attempts:
2 left
💡 Hint

Think about readability and common naming styles in Power BI.

🎯 Scenario
expert
2:30remaining
How to name calculated columns and measures to avoid confusion in a sales report?

You have a sales report with a table Sales. You create a calculated column for sales tax and a measure for total sales including tax. How should you name them to avoid confusion?

ACalculated column: Amount; Measure: Total
BCalculated column: SalesTaxAmount; Measure: TotalSalesIncludingTax
CCalculated column: Tax; Measure: SalesTotal
DCalculated column: SalesTax; Measure: SalesTax
Attempts:
2 left
💡 Hint

Names should clearly indicate if the item is a column or measure and what it represents.

Practice

(1/5)
1. Why is it important to use clear and descriptive names for measures and columns in Power BI?
easy
A. It makes reports easier to understand and maintain.
B. It reduces the file size of the Power BI report.
C. It automatically improves the report's performance.
D. It hides sensitive data from users.

Solution

  1. Step 1: Understand the role of naming in reports

    Clear and descriptive names help users and developers quickly understand what each measure or column represents.
  2. Step 2: Recognize the impact on maintenance

    Consistent naming reduces confusion and makes updating or fixing reports easier over time.
  3. Final Answer:

    It makes reports easier to understand and maintain. -> Option A
  4. Quick Check:

    Clear naming = easier maintenance [OK]
Hint: Good names = easy reading and fixing [OK]
Common Mistakes:
  • Thinking naming affects file size
  • Assuming naming improves performance
  • Believing naming hides data
2. Which of the following is the correct way to name a measure in Power BI following common naming conventions?
easy
A. TotalSales
B. mTotalSales
C. Measure_TotalSales
D. SalesTotalMeasure

Solution

  1. Step 1: Identify common prefixes for measures

    Many teams use a prefix like 'm' to indicate a measure, making it easy to spot in lists.
  2. Step 2: Compare options

    mTotalSales uses 'm' prefix with a clear name, which is a common and recommended practice.
  3. Final Answer:

    mTotalSales -> Option B
  4. Quick Check:

    Prefix 'm' = measure [OK]
Hint: Use 'm' prefix for measures to spot them fast [OK]
Common Mistakes:
  • Not using any prefix for measures
  • Using long or unclear prefixes
  • Mixing measure and column naming styles
3. Given the following naming convention: prefix 'c' for calculated columns and 'm' for measures, what is the correct classification of cProfitMargin?
medium
A. Measure
B. Table Name
C. Calculated Column
D. Filter

Solution

  1. Step 1: Analyze the prefix in the name

    The prefix 'c' indicates a calculated column according to the given convention.
  2. Step 2: Confirm the rest of the name

    'ProfitMargin' is the descriptive part, so the full name 'cProfitMargin' is a calculated column.
  3. Final Answer:

    Calculated Column -> Option C
  4. Quick Check:

    Prefix 'c' = calculated column [OK]
Hint: Prefix 'c' means calculated column [OK]
Common Mistakes:
  • Confusing 'c' prefix with measure
  • Thinking it is a table name
  • Assuming it is a filter
4. You see a measure named TotalSales and a calculated column named calcTotalSales. What is the main issue with these names?
medium
A. They are too long and complex.
B. The names are too short and unclear.
C. They use reserved keywords in Power BI.
D. They do not use consistent prefixes to identify their types.

Solution

  1. Step 1: Check naming consistency

    The measure has no prefix, while the calculated column uses 'calc' prefix, causing inconsistency.
  2. Step 2: Understand impact of inconsistency

    Inconsistent prefixes make it harder to quickly identify item types and maintain the report.
  3. Final Answer:

    They do not use consistent prefixes to identify their types. -> Option D
  4. Quick Check:

    Consistent prefixes = easier identification [OK]
Hint: Use consistent prefixes for all measures and columns [OK]
Common Mistakes:
  • Thinking name length is the main problem
  • Assuming reserved keywords are used
  • Believing complexity is the issue
5. You want to create a naming convention for a Power BI project that includes tables, calculated columns, and measures. Which of the following naming schemes best follows best practices?
hard
A. tblCustomer, cCustomerAge, mTotalSales
B. CustomerTable, CustomerAgeCalc, TotalSalesMeasure
C. Customer, CustomerAge, TotalSales
D. tCustomer, calcAge, measureSales

Solution

  1. Step 1: Identify prefixes for each item type

    Best practice uses clear prefixes: 'tbl' for tables, 'c' for calculated columns, 'm' for measures.
  2. Step 2: Evaluate each option

    tblCustomer, cCustomerAge, mTotalSales uses these standard prefixes consistently and clearly, making it easy to identify item types.
  3. Final Answer:

    tblCustomer, cCustomerAge, mTotalSales -> Option A
  4. Quick Check:

    Standard prefixes = clear naming [OK]
Hint: Use 'tbl', 'c', 'm' prefixes for tables, columns, measures [OK]
Common Mistakes:
  • Using inconsistent or unclear prefixes
  • Not using any prefixes
  • Using overly long or confusing names
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard