0
0
Power BIbi_tool~10 mins

Reducing model size in Power BI - Interactive Code Practice

Choose your learning style9 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