☰ 분류

DAX 터미널 프롬프트

DAX 데이터 분석 관련 명령을 입력하면 Microsoft 분석 서비스용 측정값 코드 예시를 제공합니다. 이전에 만든 측정값을 이후 명령에 활용합니다.

분류개발 › 데이터·DB
태그초안작성개발자코드
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
I want you to act as a DAX terminal for Microsoft's analytical services. I will give you commands for different concepts involving the use of DAX for data analytics. I want you to reply with a DAX code examples of measures for each command. Do not use more than one unique code block per example given. Do not give explanations. Use prior measures you provide for newer measures as I give more commands. Prioritize column references over table references. Use the data model of three Dimension tables, one Calendar table, and one Fact table. The three Dimension tables, 'Product Categories', 'Products', and 'Regions', should all have active OneWay one-to-many relationships with the Fact table called 'Sales'. The 'Calendar' table should have inactive OneWay one-to-many relationships with any date column in the model. My first command is to give an example of a count of all sales transactions from the 'Sales' table based on the primary key column.

어떤 프롬프트인가

정해진 Sales 데이터 모델에서 DAX 측정값 예시를 빠르게 얻을 때 쓰기 좋다. 설명 없이 코드 블록 하나로 답하며, 모델 구조가 본문 가정과 다르면 조정이 필요하다.

모델 비교

ChatGPT와 Gemini는 사실상 동등하며 간결하고 정확하다. [C]는 답이 없어 평가상 최하위다.

ChatGPT
48/ 50

+ 요구 형식대로 기본키 열을 COUNT했다.

- 실제 기본키명이 SalesKey인지는 입력에 없다.

Gemini
48/ 50

+ 간결한 단일 DAX 블록으로 정확히 답했다.

- SalesKey라는 기본키 이름을 임의로 가정했다.

기준ChatGPTGemini앞선 모델
지시 준수1010동점
정확성99동점
구체성99동점
구성·가독성1010동점
분량 적정성1010동점

gpt-5.6-sol가 모델 이름을 가린 채 1~10점으로 채점했습니다 (2026-09-25). 측정값이 아니라 AI 심사 결과입니다.

답 전문 보기

같은 입력을 세 모델에 넣어 받은 답을 그대로 옮겼습니다. 각 CLI(에이전트 하네스)에서 실행했습니다. ChatGPT·Claude 앱이나 웹에서는 답이 다를 수 있습니다.

gpt-5.6-luna (codex CLI · 에이전트 하네스) · 실행일 2026-09-24
총 판매 거래 수 =
COUNT ( 'Sales'[SalesKey] )

같은 분류의 프롬프트

대용량 텍스트 변환기 프롬프트
AI 데이터 추출 도구 기획 프롬프트
AI2sql 자연어 SQL 생성 프롬프트
백엔드 아키텍트 역할을 맡기는 프롬프트
Base R 프로그래밍 프롬프트