{"id":92,"date":"2026-02-26T05:08:42","date_gmt":"2026-02-26T05:08:42","guid":{"rendered":"https:\/\/gigz.pk\/powerbi\/?post_type=lesson&#038;p=92"},"modified":"2026-03-17T06:22:23","modified_gmt":"2026-03-17T06:22:23","slug":"understanding-filter-context","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/powerbi\/lesson\/understanding-filter-context\/","title":{"rendered":"Understanding Filter Context"},"content":{"rendered":"\n<p>Filter Context is one of the most important concepts in DAX. It refers to the set of data that is currently filtered when a calculation is performed.<\/p>\n\n\n\n<p>In simple terms, Filter Context means calculations change based on filters applied in a report.<\/p>\n\n\n\n<p>Filters can come from:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Visuals (charts, tables, cards)<\/li>\n\n\n\n<li>Slicers<\/li>\n\n\n\n<li>Page-level filters<\/li>\n\n\n\n<li>Report-level filters<\/li>\n\n\n\n<li>Relationships between tables<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example of Filter Context<\/h2>\n\n\n\n<p>Consider the following measure:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Total Sales = SUM(Sales[Amount])<\/pre>\n\n\n\n<p>If you place this measure in a card visual, it will show total sales for all data.<\/p>\n\n\n\n<p>If you add a slicer for Year and select 2024, the measure will automatically show sales only for 2024.<\/p>\n\n\n\n<p>The formula does not change, but the result changes because the Filter Context changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Filter Context in Visuals<\/h2>\n\n\n\n<p>When you use a visual like a table with Region and Total Sales:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For Region = North, the measure calculates only North sales.<\/li>\n\n\n\n<li>For Region = South, the measure calculates only South sales.<\/li>\n<\/ul>\n\n\n\n<p>Each row in the visual creates a different Filter Context.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modifying Filter Context with CALCULATE<\/h2>\n\n\n\n<p>The CALCULATE function allows you to change or override the existing Filter Context.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Sales 2024 = CALCULATE(<br>    SUM(Sales[Amount]),<br>    Sales[Year] = 2024<br>)<\/pre>\n\n\n\n<p>This measure forces the calculation to consider only data where Year = 2024, regardless of other filters.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Filter Context vs Row Context<\/h2>\n\n\n\n<p>Row Context works one row at a time.<\/p>\n\n\n\n<p>Filter Context works on filtered sets of data.<\/p>\n\n\n\n<p>Measures mainly work with Filter Context.<br>Calculated Columns mainly work with Row Context.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Filter Context is Important<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Makes reports dynamic and interactive<\/li>\n\n\n\n<li>Allows calculations to respond to slicers and filters<\/li>\n\n\n\n<li>Essential for time intelligence and advanced DAX<\/li>\n\n\n\n<li>Required for building KPIs and dashboards<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Filter Context controls which data is included in a calculation. Understanding it is essential for writing effective DAX measures and building powerful Power BI reports.<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1773728429528\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/powerbi\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Power BI DAX Mastery > Filter Context &#038; Row Context > Understanding Filter Context<\/span><\/span><\/div>","protected":false},"menu_order":29,"template":"","class_list":["post-92","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding Filter Context - Power BI Learning Hub<\/title>\n<meta name=\"description\" content=\"What is Filter Context in DAX? Learn how filters from slicers and visuals dynamically change calculation results in Power BI.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Filter Context - Power BI Learning Hub\" \/>\n<meta property=\"og:description\" content=\"What is Filter Context in DAX? Learn how filters from slicers and visuals dynamically change calculation results in Power BI.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"Power BI Learning Hub\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-17T06:22:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/lesson\\\/understanding-filter-context\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Understanding Filter Context - Power BI Learning Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/#website\"},\"datePublished\":\"2026-02-26T05:08:42+00:00\",\"dateModified\":\"2026-03-17T06:22:23+00:00\",\"description\":\"What is Filter Context in DAX? Learn how filters from slicers and visuals dynamically change calculation results in Power BI.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Power BI DAX Mastery > Filter Context & Row Context > Understanding Filter Context\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/\",\"name\":\"Power BI Learning Hub\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/powerbi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding Filter Context - Power BI Learning Hub","description":"What is Filter Context in DAX? Learn how filters from slicers and visuals dynamically change calculation results in Power BI.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"Understanding Filter Context - Power BI Learning Hub","og_description":"What is Filter Context in DAX? Learn how filters from slicers and visuals dynamically change calculation results in Power BI.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Power BI Learning Hub","article_modified_time":"2026-03-17T06:22:23+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/powerbi\/lesson\/understanding-filter-context\/","url":"https:\/\/gigz.pk\/","name":"Understanding Filter Context - Power BI Learning Hub","isPartOf":{"@id":"https:\/\/gigz.pk\/powerbi\/#website"},"datePublished":"2026-02-26T05:08:42+00:00","dateModified":"2026-03-17T06:22:23+00:00","description":"What is Filter Context in DAX? Learn how filters from slicers and visuals dynamically change calculation results in Power BI.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/powerbi\/"},{"@type":"ListItem","position":2,"name":"Power BI DAX Mastery > Filter Context & Row Context > Understanding Filter Context"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/powerbi\/#website","url":"https:\/\/gigz.pk\/powerbi\/","name":"Power BI Learning Hub","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/powerbi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/lesson\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/powerbi\/wp-json\/wp\/v2\/media?parent=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}