Bird
Raised Fist0
Power BIbi_tool~10 mins

Reducing model size in Power BI - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to remove unnecessary columns from the table.

Power BI
Table.RemoveColumns(Source, [1])
Drag options to blanks, or click blank then click option'
AColumnsToRemove
BRowsToRemove
CRowsToKeep
DColumnsToKeep
Attempts:
3 left
💡 Hint
Common Mistakes
Using columns to keep instead of columns to remove
Confusing rows with columns
2fill in blank
medium

Complete the DAX formula to calculate the size of the model in MB.

Power BI
ModelSizeMB = DIVIDE(SUMX(ALL('Table'), 'Table'[SizeInBytes]), [1])
Drag options to blanks, or click blank then click option'
A512
B1048576
C1000
D1024
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1024 instead of 1,048,576
Using 1000 which is for decimal units, not binary
3fill in blank
hard

Fix the error in the DAX formula to calculate distinct count of customers after filtering.

Power BI
FilteredCustomers = CALCULATE(DISTINCTCOUNT('Sales'[CustomerID]), [1])
Drag options to blanks, or click blank then click option'
A'Sales'[Amount] > 100
BVALUES('Sales'[CustomerID])
CALL('Sales')
DFILTER('Sales', 'Sales'[Amount] > 100)
Attempts:
3 left
💡 Hint
Common Mistakes
Using only a condition without FILTER
Using ALL which removes filters instead of applying them
4fill in blank
hard

Fill both blanks to create a calculated table that keeps only top 10 products by sales.

Power BI
TopProducts = TOPN([1], 'ProductSales', 'ProductSales'[SalesAmount], [2])
Drag options to blanks, or click blank then click option'
A10
B5
CDESC
DASC
Attempts:
3 left
💡 Hint
Common Mistakes
Using ascending order which returns lowest values
Using wrong number of rows
5fill in blank
hard

Fill all three blanks to create a measure that calculates average sales only for products with sales above 1000.

Power BI
AvgHighSales = CALCULATE(AVERAGE('Sales'[Amount]), FILTER('Sales', 'Sales'[Amount] [1] [2]), [3])
Drag options to blanks, or click blank then click option'
A>
B1000
CALL('Sales')
DSUM('Sales'[Amount])
Attempts:
3 left
💡 Hint
Common Mistakes
Using SUM instead of ALL in the third blank
Using wrong comparison operator

Practice

(1/5)
1. Which of the following is a simple way to reduce the size of a Power BI data model?
easy
A. Import duplicate tables for safety
B. Add more calculated columns
C. Remove columns that are not used in reports
D. Enable auto date/time for all tables

Solution

  1. Step 1: Identify unused data

    Unused columns take up space without adding value to reports.
  2. Step 2: Remove unused columns

    Deleting these columns reduces the data model size and improves performance.
  3. Final Answer:

    Remove columns that are not used in reports -> Option C
  4. Quick Check:

    Removing unused data reduces model size [OK]
Hint: Delete unused columns to shrink model size quickly [OK]
Common Mistakes:
  • Keeping all columns regardless of usage
  • Adding calculated columns unnecessarily
  • Enabling auto date/time increases model size
2. Which syntax correctly disables the auto date/time feature in Power BI using the Options menu?
easy
A. Go to File > Options > Data Load > uncheck 'Auto Date/Time'
B. Use DAX: DISABLE AUTODATE()
C. Right-click table > Disable Auto Date
D. In Power Query, remove date columns

Solution

  1. Step 1: Locate auto date/time setting

    It is found under File > Options > Data Load in Power BI Desktop.
  2. Step 2: Disable the feature

    Uncheck the 'Auto Date/Time' option to stop Power BI from creating hidden date tables.
  3. Final Answer:

    Go to File > Options > Data Load > uncheck 'Auto Date/Time' -> Option A
  4. Quick Check:

    Disabling auto date/time reduces hidden data [OK]
Hint: Disable auto date/time in Options to reduce hidden tables [OK]
Common Mistakes:
  • Trying to disable auto date/time with DAX
  • Removing date columns instead of disabling feature
  • Looking for option in Power Query instead of Options menu
3. Given a table with a column 'SalesAmount' stored as Decimal Number, which change reduces model size the most without losing data precision?
medium
A. Keep 'SalesAmount' as Decimal Number
B. Change 'SalesAmount' data type to Whole Number
C. Change 'SalesAmount' data type to Text
D. Change 'SalesAmount' data type to Fixed Decimal Number

Solution

  1. Step 1: Understand data types and size

    Decimal Number uses more space; Fixed Decimal Number stores decimals efficiently.
  2. Step 2: Choose Fixed Decimal Number

    This type reduces size while keeping decimal precision, unlike Whole Number or Text.
  3. Final Answer:

    Change 'SalesAmount' data type to Fixed Decimal Number -> Option D
  4. Quick Check:

    Fixed Decimal Number reduces size with decimals [OK]
Hint: Use Fixed Decimal Number for decimals to save space [OK]
Common Mistakes:
  • Switching to Whole Number loses decimal data
  • Using Text increases model size
  • Keeping Decimal Number wastes space
4. You notice your Power BI model size is large. You disabled auto date/time but the size did not reduce. What is the likely cause?
medium
A. You need to refresh the data after disabling auto date/time
B. There are many unused columns still in the model
C. Auto date/time disables only for new reports, not existing ones
D. The model size never changes after disabling features

Solution

  1. Step 1: Check for unused columns

    Unused columns consume space even if auto date/time is off.
  2. Step 2: Remove unused columns

    Deleting these columns will reduce model size effectively.
  3. Final Answer:

    There are many unused columns still in the model -> Option B
  4. Quick Check:

    Unused columns keep model large despite disabling features [OK]
Hint: Remove unused columns if disabling features doesn't reduce size [OK]
Common Mistakes:
  • Assuming refresh fixes size without removing data
  • Thinking auto date/time disables only for new reports
  • Believing model size never changes
5. You have a large sales dataset with many columns, including detailed customer info not used in reports. You want to reduce model size and improve report speed. Which combination of actions is best?
hard
A. Remove unused customer columns, disable auto date/time, and change numeric columns to appropriate data types
B. Keep all columns, enable auto date/time, and add calculated columns for analysis
C. Remove only unused columns, keep auto date/time enabled, and leave data types as is
D. Disable auto date/time only, keep all columns and data types unchanged

Solution

  1. Step 1: Remove unused columns

    Deleting unused customer info reduces unnecessary data in the model.
  2. Step 2: Disable auto date/time

    This stops Power BI from adding hidden date tables that increase size.
  3. Step 3: Optimize numeric data types

    Changing numeric columns to smaller or fixed decimal types saves space without losing precision.
  4. Final Answer:

    Remove unused customer columns, disable auto date/time, and change numeric columns to appropriate data types -> Option A
  5. Quick Check:

    Combining removal, disabling, and data type optimization reduces size best [OK]
Hint: Combine removing unused data, disabling features, and data type tuning [OK]
Common Mistakes:
  • Keeping all data and enabling auto date/time
  • Only removing columns without disabling features
  • Ignoring data type optimization
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