4C. Configure Power BI report filters Flashcards
What are the five levels at which filtering can occur in a Power BI report?
- Semantic model (RLS)
- Report
- Page
- Visual
- Measure
Report, page, and visual level filters apply to the structure of the report.
How do reports relate to RLS filtering?
Every Power BI report queries a single semantic model, which is a Power BI artifact that represents a semantic model. The semantic model can enforce row-level security (RLS) to restrict access to a subset of data, and different users will see different data. A report can’t determine whether the semantic model will enforce RLS, and it can’t override RLS.
What should you keep in mind about the user experience of reports in relation to RSL filtering?
When you filter RLS-filtered tables, take care to avoid situations where some report consumers see no data (BLANK) in the report. For example, consider a model that enforces RLS to restrict data visibility to specific countries/regions. If at design time, you have permission to see Australian data and you filter the report by Australia, a report consumer that has permission to see only United States data won’t see data at all.
When can you not create measures when designing a report?
When the model is a live connection to SQL Server Analysis Services multidimensional model.
How do using CALCULATE or CALCULATETABLE in a measure interact with report structure filter context?
Measure formulas, which are written in Data Analysis Expressions (DAX), can modify filter context by using the CALCULATE or CALCULATETABLE functions. These functions are powerful and provide you with the flexibility to add, remove, or modify filters. A set of DAX functions, known as time intelligence functions, also modify filter context. These functions can override any filters that are applied to the report structure.
A good example of a measure that overrides report filters is a three-month moving average calculation. To compute the result for March, the filter context for month must expand to encompass January, February, and March. The CALCULATE function or a time intelligence function can modify the filter context to produce that result.
How can measures filter visuals?
Unlike report and page-level filters, a visual-level filter can filter by using a measure. When a measure filters a visual, it’s used to eliminate groups. For example, consider a column chart visual that groups by store. A measure filter could eliminate groups (stores) where the total store sales are less than a certain amount.
What are the four different filter types/options?
- Basic
- Advanced
- Top N
- Relative date and Relative time
What does the Basic filter do?
The Basic filter type allows you to select items from a list of distinct values that are found in the field. You can also restrict the filter to a single selection instead of multi-selection.
What does the Advanced filter do?
The Advanced filter type allows you to create more complex conditions by using data type-specific operators:
- Text field operators - Test for conditions such as “contains,” “starts with,” “is blank,” “is empty,” and others.
- Numeric field operators - Test for conditions such as “is less than,” “is less than or equal to,” and others.
- Date field operators - Test for conditions such as “is after,” “is on or after,” and others.
You can combine multiple tests by using a logical AND/OR operator
What does the Top N filter do?
The Top N filter type applies to text and date fields that are available only in visual-level filters. This filter type helps you filter by the top (or bottom) number of items, like the top five products by revenue. To configure the filter, you must pass in a field that’s summarized, like sales revenue.
What does the Relative date and Relative time filter do?
The Relative date and Relative time filter types apply to date fields only, making it possible to filter by relative date or time. Relative filters allow the report consumer to filter by past, present, or future time periods based on the current date and time.
Why might you want to lock filters?
It’s a good idea to lock filters that are critical to the design of the report, page, or visual.
Why might you want to hide filters?
A hidden filter isn’t visible to report consumers. Consider hiding a filter when the report consumer doesn’t need to know about it, such as when filters are cleaning up the data, perhaps by removing BLANKs.
What is a slicer?
The slicer is a core visual with one purpose: filter other visuals.
What are the default and optional behaviours of slicers?
- By default, slicers filter all other visuals on the page.
- You can edit visual interactions to restrict filtering between two visuals.
- Sync slicers can also filter visuals on other pages.
- You can configure a slicer by using one or more fields from the same table or a hierarchy. When configured to use multiple fields or a hierarchy, the slicer presents an expandable tree structure of items.
It might be tempting to think that slicers apply page-level filters because that’s the default result. However, it’s important to understand that a slicer is a visual that propagates filters to other visuals on the same page or (when synced) across other pages.
How do slicers interact with data types?
The slicer layout is responsive to the data type of the field. Field data types are either text, numeric, or date. By default, - a text field will produce a list slicer
- a numeric field will produce a numeric range “between” filter
- a date field will produce a date range “between” filter, allowing value selection with calendar controls.
At design time, you can modify the slicer layout so that lists become dropdown lists. Dropdown lists use much less space on the report page. Numeric and date ranges offer additional layouts, allowing you to select a single value that acts as the lower or upper boundary of the filter. The reason why numeric and date slicers have additional layouts is because these data types represent continuous values. Therefore, the slicer layouts allow filtering by ranges of continuous values.