How to create measure table in Power BI

이미지
   # Power BI - How to create measure table How to Create a Measures Table We're gonna dive into how to create a Measures Table in Power BI. It's super helpful for managing all your measures efficiently. A Measures Table is a best practice that seriously boosts your report's readability and makes it way easier to maintain . 1.  Why Create a Measures Table? Here's the problem: As you build out your Power BI model, all your measures (the stuff you calculate with DAX) tend to get spread out among a bunch of different tables. What happens then? Well, it takes forever to find the right measure in the Fields pane when you're building a report, and the whole model becomes a nightmare to manage later on. The Measures Table is the fix! It's basically a special container that holds only your measures. This keeps them clean, organized, and visible right at the top of your field list, easy to spot with the little calculator icon. 2.  The Core Steps: How to Create...

Power BI DAX – Filter 함수 종류와 사용법

 

# Power BI DAX – How to use filter Funtion

Power BI에서 Filter 함수는 데이터를 조건에 따라 필터링할 때 매우 유용한 DAX 함수입니다.
이번 글에서는 Filter 함수의 종류와 실제 사용 예시를 소개하고, d_Product"High"인 제품이 판매된 날짜를 추출하는 방법을 보여드리겠습니다.


1. Filter 함수란?

  • Filter 함수는 테이블의 행을 조건에 맞게 추출하는 함수입니다.

         https://learn.microsoft.com/ko-kr/dax/filter-functions-dax
  • 기본 구문:

FILTER(<Table>, <Condition>)
  • <Table> : 필터링할 테이블

  • <Condition> : TRUE/FALSE 조건


2. 자주 사용하는 Filter 함수 종류 

함수설명
FILTER  지정한 조건에 맞는 행만 반환
ALL  특정 테이블/열의 필터를 제거하고 전체 데이터를 반환
ALLEXCEPT  특정 열을 제외하고 나머지 필터 제거
VALUES  지정한 열의 고유값을 반환
CALCULATETABLE  조건에 맞는 테이블을 반환하면서 다른 계산 컨텍스트 적용

주로 FILTERCALCULATETABLE을 함께 사용하면 특정 조건의 데이터를 효율적으로 추출할 수 있습니다.


그 밖에, 위 링크 페이지로 이동하면 아래와 같은 많은 필터함수가 있는데요,  용도에 맞게 사용하시면 되겠습니다. 


DAS Filter funtion in Microsoft learn webpage



3. 예시: d_Product가 High인 제품 판매 날짜 추출

(1) 테이블 구조 예시

d_ProductSales_DateSales_Amount
High2025-08-011200
Low2025-08-01500
High2025-08-021800

(2) Filter 함수 사용

HighProductSalesDates = FILTER( SalesTable, SalesTable[d_Product] = "High" )
  • 이 함수는 SalesTable에서 d_Product가 "High"`인 모든 행을 반환합니다.

(3) CALCULATETABLE과 함께 사용



HighProductSalesDates = CALCULATETABLE( SalesTable, FILTER(SalesTable, SalesTable[d_Product] = "High") )
  • CALCULATETABLE을 사용하면 이 테이블을 기반으로 **다른 계산(합계, 평균 등)**을 적용할 수 있습니다.

(4) 결과 예시

d_ProductSales_DateSales_Amount
High2025-08-011200
High2025-08-021800



4. Tip

  1. Filter는 항상 TRUE/FALSE 반환 조건 사용

    • 예: SalesTable[Sales_Amount] > 1000

  2. 날짜, 숫자, 텍스트 조건 모두 사용 가능

  3. CALCULATE / CALCULATETABLE과 함께 쓰면 분석 활용도가 높음

  4. 필터링 결과를 시각화나 차트에 연결하면 특정 조건 데이터만 바로 확인 가능


마무리

  • Filter 함수는 조건에 맞는 데이터를 추출할 때 필수적

  • CALCULATETABLE과 함께 사용하면 계산 컨텍스트에 맞게 유연하게 적용 가능

  • 실무 예시: High 제품 판매일, 금액 합계, 특정 지역 판매 등

 Tip: 실제 데이터에 적용할 때는 조건을 다양하게 바꿔보면서 필터링 결과를 확인하면 이해가 쉽습니다.


<이 블로그 내 다른 게시글>


인기글

Power BI Desktop 무료버전 설치방법 (2025년 9월 최신 가이드)

Power BI DAX – SWITCH 함수로 영어 카테고리를 한글로 바꾸기

Power BI DAX 기초부터! 데이터 분석의 첫걸음