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 데이터 모델링 - 실제 예제를 보며 쉽게 배우기!

 # How to data modeling in Power BI


이번 글에서는 엑셀 데이터를 활용해 Power BI에서 스타 스키마 모델링을 만드는 방법을 정리해보려 해요. 아래 예시는 제가 실제로 분석을 위해 만든 테이블로 이해하기 쉽게 작성했습니다.


1. 샘플 데이터 준비하기

우선 엑셀에서 기본 데이터 세트를 만들었어요. 총 4개의 시트로 구성했습니다.

  • Fact_Sales : 주문일자, 주문번호, 고객번호, 제품, 카테고리, 가격, 수량, 지불수단, 지역

  • Dim_Product : 제품명, 카테고리

  • Dim_Payment : 지불수단, 지불수단 코드

To see each data table to data modeling




2. 테이블 관계 연결은 어떻게 하나요?

공통 열(키)이 존재해야 합니다.

  • 두 테이블 모두에 존재하는 열이어야 함

  • 일반적으로:

    • 사실 테이블: 여러 개의 중복 값

    • 차원 테이블: 고유한 값(Primary Key)

예시 (하단 참조) 

     FactSales[Product] ↔ DimProduct[Product]

   FactSales[Payment] ↔ DimPayment[code]



3. 실제 연결하기 (스타스키마)

모델 탭으로 가서 각 테이블 간 관계를 드래그로 연결했어요.

Drag to key colum


연결하면, 관계확인을 위한 창이 뜹니다.

방향설정, 일대일, 일대 다 등 설정하는 것이지요. 확인 버튼을 누르면 됩니다.


Data modeling filter and relationship


이렇게 하면 중앙에 사실 테이블(FactSales),
그 주변에 차원 테이블이 위치한 별 모양 구조가 완성됩니다.


마무리

이제, 각 테이블의 고유한 키값으로 데이터 모델링이 되었습니다.

Fihished screen shot of data modeling in Power BI

위 예시는 아주 단순한 테이블로 보여드렸지만, 분석이 복잡해 질수록 모델링 관계도 다양해 집니다. 데이터 모델링이 되어야 DAX 수식을 이용해 쉽게 데이터를 분석할 수 있다는 것 잊지 마세요!


모델에 대한 깊은 이해는 하기 페이지를 참고 해 주세요.

https://learn.microsoft.com/ko-kr/power-bi/transform-model/desktop-relationships-understand


< 블로그 내 다른 게시글>

Power BI 파일형식 - PBIX vs. PBIP 는 어떻게 다를까? 두가지 차이 알아보기

Power BI 서식(Formatting)의 중요성 - “가장 중요한 데이터에는 가장 명확한 옷을 입혀라”

인기글

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

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

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