Popular Searches
Popular Course Categories
Popular Courses

Applying Advanced Filter Conditions

Applying Advanced Filter Conditions

Filters, Slicers, and Interactive Reports

Applying Advanced Filter Conditions in Microsoft Power BI

Course: Microsoft Power BI Training

Topic: Applying Advanced Filter Conditions

Course Link: Microsoft Power BI Training – JustAcademy

Demo Link: Register for a Course Demo

JustAcademy Website: Visit JustAcademy


1. Introduction to Advanced Filter Conditions

Microsoft Power BI provides filtering features that help users analyze specific parts of a dataset. Basic filters are useful when selecting values from a list, but some business questions require more precise conditions. Advanced filter conditions allow users to filter data using comparison operators, text matching, logical conditions, and ranges.

For example, a sales manager may want to display products with sales greater than ₹50,000, customers whose names contain a particular word, or orders placed after a specific date. These requirements can be handled using advanced filtering options in the Power BI Filters pane.

Advanced filtering is useful for creating focused reports, identifying important records, analyzing business performance, and finding data that meets specific criteria.

1.1 Learning Objectives

After studying this topic, learners should be able to:

  • Understand advanced filtering in Power BI.
  • Distinguish basic filters from advanced filters.
  • Apply comparison operators to numeric, text, and date fields.
  • Combine multiple conditions using AND and OR logic.
  • Apply advanced filters at visual, page, and report levels.
  • Use relative date filtering for time-based analysis.
  • Identify common filtering problems and troubleshoot them.
  • Apply advanced filter conditions in practical business reports.

2. Understanding the Filters Pane

The Filters pane is the main area for configuring filters in Power BI reports. The available filter options depend on the field's data type, the selected filter level, the visual, and the Power BI interface.

2.1 Main Filter Levels

Filter Level Scope Example
Visual-level filter One selected visual Show products with sales above ₹50,000 in one chart.
Page-level filter Relevant visuals on one page Show orders from 2026 on the current page.
Report-level filter Relevant visuals across all report pages Display data for India throughout the report.

2.2 Steps to Access Advanced Filtering

  1. Open Power BI Desktop.
  2. Open an existing report or create a new report.
  3. Select a visual if you want a visual-level filter.
  4. Open the Filters pane.
  5. Add the required field to the appropriate filter section if it is not already there.
  6. Expand the filter card.
  7. Locate the Filter type dropdown.
  8. Select Advanced filtering when it is available for that field and filter context.
  9. Choose the required condition and enter the value.
  10. Apply the filter if an Apply filter button is shown, then check the results.

Power BI may show different filter controls depending on the field type and the current editing experience. Some fields may offer Basic filtering, Advanced filtering, Relative date, or other relevant options.

3. Basic Filtering vs. Advanced Filtering

Basic and advanced filters help users narrow down data, but they work in different ways.

Feature Basic Filtering Advanced Filtering
Selection method Select values from a list. Define conditions using operators and values.
Best suited for Known categories or specific values. Rules, ranges, comparisons, and text matching.
Example Select the North region. Sales is greater than 50,000.
Text filtering Select one or more listed text values. Find text that contains or begins with a specified value.
Numeric filtering Select listed numeric values. Apply conditions such as greater than or between.
Date filtering Select dates or date values from a list. Apply date comparisons such as before or after.

Example: If a report contains 500 products and you want to select exactly three known products, basic filtering may be suitable. If you want to display all products with sales greater than ₹1,00,000, advanced filtering is more appropriate.

4. Understanding Comparison Operators

Advanced filters use operators to compare field values against specified conditions. Available operators depend on the field's data type.

4.1 Common Numeric Operators

Operator Meaning Example
Is Matches an exact value. Quantity is 100.
Is not Excludes an exact value. Quantity is not 100.
Is greater than Selects values above a threshold. Sales is greater than 50,000.
Is greater than or equal to Selects values at or above a threshold. Sales is at least 50,000.
Is less than Selects values below a threshold. Discount is less than 10.
Is less than or equal to Selects values at or below a threshold. Quantity is at most 20.
Is blank Selects blank values. Customer phone is blank.
Is not blank Selects nonblank values. Customer phone is not blank.
Is between Selects values within a specified range where available. Sales is between 10,000 and 50,000.

The exact operator names and availability can vary depending on the data type and Power BI version.

4.2 Why Operators Matter

Choosing the correct operator ensures that the filter returns the intended records.

  • Use greater than when the threshold itself should be excluded.
  • Use greater than or equal to when the threshold should be included.
  • Use less than when values must be strictly below a limit.
  • Use less than or equal to when values equal to the limit should also appear.
  • Use between when you need to define a range.

5. Applying Advanced Filters to Numeric Fields

Numeric fields contain measurable values such as sales, revenue, quantity, cost, profit, age, and discount. Advanced numeric filtering allows users to focus on records that meet numerical requirements.

5.1 Example Dataset

Product Category Sales Profit
Laptop Electronics 85,000 12,000
Mobile Electronics 45,000 8,000
Office Chair Furniture 25,000 4,000
Monitor Electronics 60,000 9,000
Desk Furniture 15,000 2,000

5.2 Example: Sales Greater Than ₹50,000

To show only products with sales greater than ₹50,000:

  1. Select the visual that displays products and sales.
  2. Add the Sales field to the visual-level filter section.
  3. Choose Advanced filtering.
  4. Select Is greater than.
  5. Enter 50000.
  6. Apply the filter if required.
  7. Review the displayed records.

Expected result: Laptop and Monitor meet this condition. Products with sales equal to or below ₹50,000 are excluded.

5.3 Example: Sales Between ₹20,000 and ₹70,000

Suppose the requirement is to display products with sales between ₹20,000 and ₹70,000, including both endpoints when the selected condition uses inclusive boundaries.

Choose the appropriate range condition if available, or configure the two conditions as follows:

  • Sales is greater than or equal to 20000.
  • Sales is less than or equal to 70000.

Combine the conditions using AND so that both conditions must be satisfied.

Expected result: Mobile, Office Chair, and Monitor satisfy this inclusive range in the sample dataset.

5.4 Example: Finding Low-Profit Products

A business may want to identify products with profit below ₹5,000.

  1. Add Profit to the relevant filter section.
  2. Choose Advanced filtering.
  3. Select Is less than.
  4. Enter 5000.
  5. Apply the filter.

This helps the business identify products that may require a pricing review, cost reduction, or further investigation.

6. Applying Advanced Filters to Text Fields

Text fields include customer names, product names, cities, departments, categories, and order descriptions. Advanced text filtering helps find records based on words or text patterns.

6.1 Common Text Operators

Operator Purpose Example
Contains Finds values containing specified text. Product contains "Phone".
Does not contain Excludes values containing specified text. Customer does not contain "Test".
Starts with Finds values beginning with specified text. City starts with "M".
Does not start with Excludes values beginning with specified text. Product does not start with "Old".
Is Matches a specific value. Category is "Electronics".
Is not Excludes a specific value. Region is not "West".
Is blank Finds blank text values. Customer name is blank.
Is not blank Finds nonblank text values. Customer name is not blank.

6.2 Example: Product Names Containing "Phone"

Suppose a product table contains:

  • Smartphone Pro
  • Office Chair
  • Wireless Phone
  • Monitor
  • Phone Case

Apply an advanced filter to the Product field:

  1. Choose Advanced filtering.
  2. Select Contains.
  3. Enter Phone.
  4. Apply the filter.

The matching products should include Smartphone Pro, Wireless Phone, and Phone Case, assuming the text values match the condition.

6.3 Example: Excluding Test Customers

In a customer dataset, test records may have names containing the word Test.

Use the condition Customer Name does not contain "Test" to exclude those matching records from the filtered view.

For production reports, consider whether test records should instead be removed or marked during data preparation so that the same quality rule applies consistently to all analyses.

7. Applying Advanced Filters to Date Fields

Date filtering helps users analyze data by order date, invoice date, delivery date, employee joining date, or reporting period.

7.1 Common Date Conditions

Condition Purpose Example
Is Selects a specific date where supported. Order Date is 1 January 2026.
Is before Selects dates earlier than a specified date. Order Date is before 1 January 2026.
Is after Selects dates later than a specified date. Order Date is after 1 January 2026.
Is on or before Includes the specified date and earlier dates. Order Date is on or before 31 December 2025.
Is on or after Includes the specified date and later dates. Order Date is on or after 1 January 2026.
Relative date Filters according to a moving date range. Orders from the last 30 days.

Exact date operator labels can differ. If the date field is imported as text, Power BI may show text operators rather than date operators. Confirm that the field's data type is Date or Date/Time as appropriate.

7.2 Example: Orders After a Specific Date

Suppose a manager wants to view orders placed after 1 January 2026.

  1. Add Order Date to the required filter section.
  2. Choose Advanced filtering if available.
  3. Select Is after.
  4. Enter 1 January 2026.
  5. Apply the filter.

Only dates later than the selected cutoff should remain. If the requirement includes 1 January itself, choose the equivalent inclusive condition, such as on or after.

7.3 Example: Orders Within a Date Range

To analyze orders during the first quarter of 2026, define a start date of 1 January 2026 and an end date of 31 March 2026. Use a suitable between condition or combine inclusive lower and upper date conditions using AND.

7.4 Relative Date Filtering

Relative date filters are useful when a report needs to show a moving period, such as the last 7 days, the last 30 days, or the previous full calendar month.

Typical steps include:

  1. Add a Date column to the visual, page, or report filter section.
  2. Choose Relative date as the filter type where available.
  3. Select a period such as Last, Next, or This.
  4. Enter the number of days, weeks, months, or years if required.
  5. Select the date unit and any other available settings.
  6. Review the displayed range and the report's date assumptions.

Relative date filtering is different from a fixed-date advanced filter because its selected range can move over time. Power BI's relative date options have specific calendar and time-zone behavior, so validate the result when reporting across regions.

8. Combining Multiple Conditions with AND and OR

Advanced filtering becomes especially useful when more than one condition must be evaluated. Logical operators determine how the conditions work together.

8.1 AND Operator

AND means that all specified conditions must be true for a record to match the filter.

Example: Show products with Sales greater than ₹50,000 AND Profit greater than ₹8,000.

Product Sales Profit Matches Both Conditions?
Laptop 85,000 12,000 Yes
Mobile 45,000 8,000 No
Monitor 60,000 9,000 Yes
Desk 15,000 2,000 No

Only Laptop and Monitor meet both conditions in this example.

8.2 OR Operator

OR means that a record can match if at least one of the specified conditions is true.

Example: Show products with Sales greater than ₹70,000 OR Profit greater than ₹10,000.

A product that meets either condition is included. A product that meets neither condition is excluded.

8.3 Setting AND or OR in the Filters Pane

  1. Add the field to the appropriate filter section.
  2. Choose Advanced filtering.
  3. Configure the first condition.
  4. Configure the second condition if the filter supports a second condition.
  5. Choose AND or OR in the logical operator control.
  6. Apply the filter and check the resulting records.

The available condition count and controls depend on the field and Power BI interface. When a requirement involves multiple fields or more complex logic than the filter card supports, consider using a DAX measure, a calculated column, a properly designed model, or data preparation in Power Query.

9. Applying Filters at Different Levels

Advanced conditions can be used at different filter levels, subject to the field, filter type, and visual support.

9.1 Visual-Level Advanced Filter

A visual-level advanced filter affects one visual.

Example: A product chart displays only products with sales greater than ₹50,000, while other visuals on the page continue to use their own filter settings.

9.2 Page-Level Advanced Filter

A page-level advanced filter affects the relevant visuals on one page.

Example: A sales analysis page shows orders with Order Value greater than ₹10,000.

9.3 Report-Level Advanced Filter

A report-level advanced filter applies a condition across relevant visuals on the report's pages.

Example: A report is restricted to customers whose status is Active, if the chosen field and filter type support the required condition.

9.4 Choosing the Correct Level

Business Requirement Recommended Filter Level
Show only high-value products in one chart. Visual-level
Show orders above a value threshold throughout one page. Page-level
Apply the same customer-status condition throughout the report. Report-level

10. Advanced Filtering and Top N Analysis

Top N filtering selects a specific number of items ranked by a measure. It is useful for identifying leading products, customers, stores, or regions.

Top N is a separate filter type rather than simply another comparison operator in the standard advanced filter card. Its availability and setup depend on the visual and filter context.

10.1 Example: Top Five Products by Sales

  1. Select the chart displaying products and sales.
  2. Add Product to the visual-level filter section if needed.
  3. Choose the Top N filter type where available.
  4. Select Top and enter 5.
  5. Specify Sales or the Total Sales measure in the ranking field.
  6. Apply the filter.
  7. Check that the visual displays the intended leading products.

10.2 When to Use Top N Filtering

  • Identifying the top five customers by revenue.
  • Displaying the ten highest-selling products.
  • Finding the lowest-performing stores.
  • Highlighting leading regions by profit.
  • Reducing a large category list to a manageable selection.

11. Practical Example: Sales Analysis Report

In this exercise, create a Power BI report that uses advanced filter conditions to analyze sales data.

11.1 Sample Dataset

Order ID Product Region Order Date Sales Profit
1001 Laptop North 2026-01-10 85000 12000
1002 Mobile South 2026-01-20 45000 8000
1003 Monitor North 2026-02-05 60000 9000
1004 Office Chair West 2026-02-18 25000 4000
1005 Phone Case East 2026-03-12 12000 2500
1006 Desk South 2026-03-25 15000 2000

11.2 Create a Total Sales Measure

Create a measure to calculate total sales:

Total Sales =
SUM(Sales[Sales])

This formula assumes that the table is named Sales and the numeric column is also named Sales. Adjust the names if your dataset uses different names.

11.3 Build the Visuals

  1. Create a card displaying Total Sales.
  2. Create a bar chart displaying Sales by Product.
  3. Create a column chart displaying Sales by Region.
  4. Create a table containing Product, Order Date, Sales, and Profit.
  5. Format the titles, labels, and currency values.

11.4 Apply Advanced Conditions

Task A: High-value products

Apply a visual-level advanced filter to the product chart where Sales is greater than 50,000.

Task B: Profitable orders

Apply a page-level filter where Profit is greater than 5,000 to focus the current page on more profitable orders.

Task C: Date range

Filter Order Date to include dates from 1 January 2026 through 28 February 2026 using a suitable date-range condition.

Task D: Text search

Filter Product using Contains "Phone" to find products with that text in their names.

Task E: Combined conditions

Configure a filter to include products with Sales greater than 50,000 AND Profit greater than 8,000, then compare the result with an OR condition.

11.5 Evaluate the Results

  • Confirm that the correct products remain after applying each condition.
  • Check how the active filters affect the Total Sales measure.
  • Verify that date conditions include or exclude boundary dates as intended.
  • Compare AND and OR results to understand the difference.
  • Clear filters one at a time to understand their individual impact.

12. Advanced Filtering with DAX Measures

Some business requirements are more complex than the conditions available in a filter card. DAX measures can calculate values based on the current filter context and support more advanced analytical logic.

12.1 Example: Total Sales

Total Sales =
SUM(Sales[Sales])

This measure calculates the sum of the Sales column in the current filter context.

12.2 Example: Total Profit

Total Profit =
SUM(Sales[Profit])

12.3 Example: Profit Margin

Profit Margin =
DIVIDE(
    [Total Profit],
    [Total Sales],
    0
)

Format the Profit Margin measure as a percentage. A ratio of 0.15 should display as 15% when formatted correctly.

12.4 Filtering by a Measure

Depending on the visual and filter configuration, you may be able to filter by an aggregated measure or use a measure in a visual-level condition. For example, you might want to display categories whose Total Sales measure exceeds ₹1,00,000.

If a required measure filter is not available in the intended filter section, consider whether the business requirement should be implemented through the visual configuration, a supporting measure, a calculated column, or model changes. Measures are evaluated in filter context and are not interchangeable with stored row-level column values.

13. Advanced Filtering vs. Power Query Filtering

Power BI includes filtering capabilities in both report authoring and Power Query. Although both can restrict data, they serve different purposes.

Feature Report Advanced Filtering Power Query Filtering
Where it is used Report canvas and Filters pane Power Query Editor
Purpose Controls which data appears in report visuals. Transforms or reduces rows during data preparation.
When it takes effect As report filter context is evaluated. During query evaluation and data refresh.
Example Show sales above ₹50,000 in a chart. Remove test transactions from the prepared dataset.
Impact on model data Normally filters the displayed analysis without deleting the underlying imported rows. Can remove rows from the resulting loaded table.

Choose report filters when readers need to analyze different subsets of the model. Use Power Query when the requirement is part of data preparation, such as removing invalid records or excluding unwanted source rows.

14. Common Advanced Filtering Problems

Problem Possible Cause Solution
Advanced filtering is unavailable. The field type or current filter context does not support that option. Check the field's data type and the available filter types.
Text conditions are shown for a date field. The date column may be stored as text. Correct the column's data type in Power Query or the model.
Expected records are missing. Other filters may also restrict the data. Review visual, page, and report filters together.
AND returns no records. The conditions may be too restrictive or mutually incompatible. Check the values and determine whether OR is more appropriate.
OR returns too many records. Either condition can match a record. Use AND if all conditions must be satisfied.
Date boundaries are incorrect. Inclusive and exclusive operators are being confused. Check whether the cutoff date should be included.
Numeric values do not match expectations. The field may be text, rounded, or formatted differently. Verify the data type, actual values, and measure definition.
Filter changes do not affect a visual. Model relationships or measure logic may prevent the expected propagation. Review relationships, filter context, and DAX functions.
Top N results are unexpected. The ranking measure or filter context may be incorrect. Check the ranking field, measure, ties, and other active filters.

15. Best Practices for Applying Advanced Filters

  • Define the business requirement before choosing the filter condition.
  • Use numeric, text, or date operators appropriate to the field's data type.
  • Check whether comparison operators include or exclude the boundary value.
  • Use AND when all conditions must be true.
  • Use OR when any one of the conditions can be true.
  • Apply filters at the correct level to avoid unintended effects.
  • Review the complete filter context when results look incorrect.
  • Use relative date filtering for rolling time periods and fixed dates for specific cutoffs.
  • Keep filtering rules understandable for report readers.
  • Use Power Query for data preparation and report filters for interactive analysis.
  • Do not rely on report filters as a security mechanism.
  • Test filters against known records before publishing a report.

16. Practice Exercises

Exercise 1: High Sales

Create a visual-level advanced filter to display products with Sales greater than 75,000.

Exercise 2: Low Profit

Filter products with Profit less than 5,000 and identify which products need further investigation.

Exercise 3: Text Matching

Use a Contains condition to find products whose names include "Phone".

Exercise 4: Date Range

Display transactions from 1 January 2026 through 31 March 2026.

Exercise 5: AND vs. OR

Create two versions of a filter using Sales greater than 50,000 and Profit greater than 8,000. Use AND in one version and OR in the other. Compare the results.

Exercise 6: Page-Level Filtering

Apply a page-level filter for a selected region and check how the page's visuals respond.

Exercise 7: Report-Level Filtering

Apply a report-level filter for a selected country and verify the behavior on every report page.

Exercise 8: Troubleshooting

Create a filter that returns no records, then identify whether the issue is caused by incompatible conditions, another filter, a data-type problem, or a relationship issue.

17. Interview Questions and Answers

Q1. What is advanced filtering in Power BI?

Answer: Advanced filtering allows users to define conditions using comparison operators and text matching rather than selecting only predefined values from a list.

Q2. What is the difference between basic and advanced filtering?

Answer: Basic filtering selects values from a list, while advanced filtering defines rules such as greater than, less than, contains, or starts with.

Q3. What does the AND operator do?

Answer: AND includes records only when all specified conditions are true.

Q4. What does the OR operator do?

Answer: OR includes records when at least one specified condition is true.

Q5. How can you filter sales above ₹50,000?

Answer: Add the Sales field to the appropriate filter section, choose Advanced filtering, select Is greater than, enter 50000, and apply the filter.

Q6. How do you filter text containing a specific word?

Answer: Choose Advanced filtering for the text field, select Contains, and enter the required word.

Q7. What is relative date filtering?

Answer: Relative date filtering selects a moving time period, such as the last 30 days or previous full calendar month.

Q8. Can advanced filtering be applied at different levels?

Answer: Yes. Supported conditions can be applied at visual, page, or report level, depending on the field and filter type.

Q9. What is Top N filtering?

Answer: Top N filtering selects a specified number of items ranked by a measure, such as the top five products by sales.

Q10. Why might an advanced filter be unavailable?

Answer: The selected field type or filter context may not support advanced filtering, or the field may have an incorrect data type.

Q11. What is the difference between report filtering and Power Query filtering?

Answer: Report filtering controls the data displayed in report analysis, while Power Query filtering changes the rows included during data preparation and loading.

Q12. Why is filter context important?

Answer: Filter context determines which data is considered when a visual or DAX measure is evaluated. Other filters and model relationships can change the final result.

18. Quick Revision Checklist

  • Understand the Filters pane and its filter levels.
  • Know the difference between basic and advanced filters.
  • Use appropriate operators for numeric, text, and date fields.
  • Understand AND and OR conditions.
  • Check inclusive and exclusive boundary conditions.
  • Use relative date filtering for rolling date ranges.
  • Understand how visual, page, and report filters combine.
  • Distinguish report filters from Power Query filters.
  • Troubleshoot data types, relationships, and filter context.
  • Validate the final report against known records.

19. Official Learning Resources

20. Conclusion

Advanced filter conditions allow Power BI users to analyze data using precise rules rather than relying only on simple value selection. Numeric comparisons, text matching, date conditions, and logical operators make it possible to identify important records and focus reports on specific business requirements.

By selecting the correct operator, combining conditions carefully, applying filters at the appropriate level, and checking the active filter context, learners can create more accurate, flexible, and useful Power BI reports.

Explore More: Visit JustAcademy, explore the Microsoft Power BI Training course, or register for a course demo.

whatsapp