https://github.com/allanotieno254/powerbi-dax-filter-context
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.
https://github.com/allanotieno254/powerbi-dax-filter-context
business-intelligence data data-analysis dax dax-functions powerbi powerbi-visuals visualization
Last synced: 6 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/allanotieno254/powerbi-dax-filter-context
- Owner: AllanOtieno254
- Created: 2025-02-04T20:30:49.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-04T20:45:14.000Z (8 months ago)
- Last Synced: 2025-02-04T21:30:31.391Z (8 months ago)
- Topics: business-intelligence, data, data-analysis, dax, dax-functions, powerbi, powerbi-visuals, visualization
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📊 DAX Filter Context in Power BI
## 🔍 Overview
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.### 🏆 Key Objectives:
- Understand how **row, column, and visual-level filters** interact.
- Analyze **DAX functions like CALCULATE, FILTER, ALL, and REMOVEFILTERS**.
- Demonstrate real-world **Bank Loan Analysis** using Power BI.---
### 🛠️ DAX Functions Used
1️⃣ CALCULATE
Modifies filter context for an expression.### DAX
Copy
Edit
Total Sales = CALCULATE(SUM(Sales[Amount]), Sales[Region] = "East")
### 2️⃣ FILTER
Creates a table based on conditions.DAX
Copy
Edit
FilteredData = FILTER(Sales, Sales[Amount] > 1000)
### 3️⃣ ALL
Ignores existing filters.DAX
Copy
Edit
Total Sales (All Regions) = CALCULATE(SUM(Sales[Amount]), ALL(Sales[Region]))
### 4️⃣ REMOVEFILTERS
Removes all filters from a table or column.DAX
Copy
Edit
Total Sales Without Filters = CALCULATE(SUM(Sales[Amount]), REMOVEFILTERS(Sales))

## 🚀 Getting Started
### 📥 Clone the repository:
```sh
git clone https://github.com/your-username/DAX-Filter-Context.git