0
0
Power BIbi_tool~10 mins

Static RLS rules 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 DAX expression to create a static RLS filter for the 'Region' column.

Power BI
FILTER('Sales', 'Sales'[Region] = [1])
Drag options to blanks, or click blank then click option'
A"North"
BNorth
CRegion
D'North'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to use quotes around text values.
Using single quotes which are for table or column names.
2fill in blank
medium

Complete the DAX expression to apply a static RLS rule filtering 'Country' to 'USA'.

Power BI
FILTER('Customers', 'Customers'[Country] = [1])
Drag options to blanks, or click blank then click option'
A'USA'
B"USA"
CUSA
D[USA]
Attempts:
3 left
💡 Hint
Common Mistakes
Using single quotes instead of double quotes for text.
Not quoting the text value at all.
3fill in blank
hard

Fix the error in this static RLS DAX filter expression by completing the blank.

Power BI
FILTER('Orders', 'Orders'[Status] = [1])
Drag options to blanks, or click blank then click option'
A"Completed"
BCompleted
C'Completed'
D[Completed]
Attempts:
3 left
💡 Hint
Common Mistakes
Using unquoted text which causes syntax errors.
Using single quotes which are invalid for text in DAX.
4fill in blank
hard

Fill both blanks to create a static RLS rule filtering 'Category' to 'Electronics' in the 'Products' table.

Power BI
FILTER([1], [1][[2]] = "Electronics")
Drag options to blanks, or click blank then click option'
A'Products'
B'Product'
C'Category'
D'Categories'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong table or column names.
Forgetting to quote table name or incorrectly quoting column name.
5fill in blank
hard

Fill all three blanks to create a static RLS rule filtering 'Region' to 'West' in the 'Sales' table using DAX.

Power BI
FILTER([1], [2][[3]] = "West")
Drag options to blanks, or click blank then click option'
A'Sales'
BSales
CRegion
D'Region'
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the table name.
Quoting the column name incorrectly.
Using wrong order of table and column.