{"id":25011501,"url":"https://github.com/allanotieno254/powerbi-dax-filter-context","last_synced_at":"2026-01-08T11:41:53.717Z","repository":{"id":275840048,"uuid":"927358599","full_name":"AllanOtieno254/PowerBI-DAX-Filter-Context","owner":"AllanOtieno254","description":"This repository contains a Power BI project that explores **DAX Filter Context**, a crucial concept in DAX calculations. The project focuses on **Bank Loan Analysis**, demonstrating how different filter contexts affect DAX formulas.","archived":false,"fork":false,"pushed_at":"2025-02-04T20:45:14.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T21:30:31.391Z","etag":null,"topics":["business-intelligence","data","data-analysis","dax","dax-functions","powerbi","powerbi-visuals","visualization"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AllanOtieno254.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-04T20:30:49.000Z","updated_at":"2025-02-04T20:45:18.000Z","dependencies_parsed_at":"2025-02-04T21:41:16.707Z","dependency_job_id":null,"html_url":"https://github.com/AllanOtieno254/PowerBI-DAX-Filter-Context","commit_stats":null,"previous_names":["allanotieno254/powerbi-dax-filter-context"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FPowerBI-DAX-Filter-Context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FPowerBI-DAX-Filter-Context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FPowerBI-DAX-Filter-Context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanOtieno254%2FPowerBI-DAX-Filter-Context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllanOtieno254","download_url":"https://codeload.github.com/AllanOtieno254/PowerBI-DAX-Filter-Context/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269928,"owners_count":20750321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["business-intelligence","data","data-analysis","dax","dax-functions","powerbi","powerbi-visuals","visualization"],"created_at":"2025-02-05T05:31:45.614Z","updated_at":"2026-01-08T11:41:53.688Z","avatar_url":"https://github.com/AllanOtieno254.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 DAX Filter Context in Power BI\n![YTD Sales](https://github.com/user-attachments/assets/5f4de99e-1284-454f-8252-5a3b8f75f0c7)\n\n## 🔍 Overview\nThis repository contains a Power BI project that explores **DAX Filter Context**, a crucial concept in DAX calculations. The project focuses on **Bank Loan Analysis**, demonstrating how different filter contexts affect DAX formulas.\n\n### 🏆 Key Objectives:\n- Understand how **row, column, and visual-level filters** interact.\n- Analyze **DAX functions like CALCULATE, FILTER, ALL, and REMOVEFILTERS**.\n- Demonstrate real-world **Bank Loan Analysis** using Power BI.\n\n---\n\n\n### 🛠️ DAX Functions Used\n1️⃣ CALCULATE\nModifies filter context for an expression.\n\n### DAX\nCopy\nEdit\nTotal Sales = CALCULATE(SUM(Sales[Amount]), Sales[Region] = \"East\")\n### 2️⃣ FILTER\nCreates a table based on conditions.\n\nDAX\nCopy\nEdit\nFilteredData = FILTER(Sales, Sales[Amount] \u003e 1000)\n### 3️⃣ ALL\nIgnores existing filters.\n\nDAX\nCopy\nEdit\nTotal Sales (All Regions) = CALCULATE(SUM(Sales[Amount]), ALL(Sales[Region]))\n### 4️⃣ REMOVEFILTERS\nRemoves all filters from a table or column.\n\nDAX\nCopy\nEdit\nTotal Sales Without Filters = CALCULATE(SUM(Sales[Amount]), REMOVEFILTERS(Sales))\n![duplicate sales by country](https://github.com/user-attachments/assets/f3fcd202-5e67-4380-b748-d4638389ff01)\n![Sales by country](https://github.com/user-attachments/assets/5c69cff8-db77-418a-8061-0889478992b8)\n\n\n## 🚀 Getting Started\n\n### 📥 Clone the repository:\n```sh\ngit clone https://github.com/your-username/DAX-Filter-Context.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanotieno254%2Fpowerbi-dax-filter-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanotieno254%2Fpowerbi-dax-filter-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanotieno254%2Fpowerbi-dax-filter-context/lists"}