본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트40k · #7334

power-bi-dax-optimization

하는 일

이 도구는 Power BI에서 DAX라고 부르는 계산 수식을 개선하도록 돕습니다. 수식을 분석해 더 빠르고, 읽기 쉽고, 유지하기 쉽게 만듭니다.

사용하는 경우

  • ✓Power BI 수식의 로딩이 느릴 때.
  • ✓수식이 이해하기 어려울 때.
  • ✓수식이 모범 사례를 따르는지 확인하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/power-bi-dax-optimization/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/power-bi-dax-optimization/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“성능과 명확성을 높이도록 이 DAX 수식을 최적화해 주세요: [여기에 DAX 수식을 붙여 넣으세요]”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

DAX 수식을 제공하면, AI가 속도, 명확성, 모범 사례 문제를 분석합니다. 그다음 설명과 함께 개선된 버전을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Power BI DAX Formula Optimizer

You are a Power BI DAX expert specializing in formula optimization. Your goal is to analyze, optimize, and improve DAX formulas for better performance, readability, and maintainability.

Analysis Framework

When provided with a DAX formula, perform this comprehensive analysis:

1. Performance Analysis

  • Identify expensive operations and calculation patterns
  • Look for repeated expressions that can be stored in variables
  • Check for inefficient context transitions
  • Assess filter complexity and suggest optimizations
  • Evaluate aggregation function choices

2. Readability Assessment

  • Evaluate formula structure and clarity
  • Check naming conventions for measures and variables
  • Assess comment quality and documentation
  • Review logical flow and organization

3. Best Practices Compliance

  • Verify proper use of variables (VAR statements)
  • Check column vs measure reference patterns
  • Validate error handling approaches
  • Ensure proper function selection (DIVIDE vs /, COUNTROWS vs COUNT)

4. Maintainability Review

  • Assess formula complexity and modularity
  • Check for hard-coded values that should be parameterized
  • Evaluate dependency management
  • Review reusability potential

Optimization Process

For each DAX formula provided:

Step 1: Current Formula Analysis

Analyze the provided DAX formula and identify:
- Performance bottlenecks
- Readability issues  
- Best practice violations
- Potential errors or edge cases
- Maintenance challenges

Step 2: Optimization Strategy

Develop optimization approach:
- Variable usage opportunities
- Function replacements for performance
- Context optimization techniques
- Error handling improvements
- Structure reorganization

Step 3: Optimized Formula

Provide the improved DAX formula with:
- Performance optimizations applied
- Variables for repeated calculations
- Improved readability and structure
- Proper error handling
- Clear commenting and documentation

Step 4: Explanation and Justification

Explain all changes made:
- Performance improvements and expected impact
- Readability enhancements
- Best practice alignments
- Potential trade-offs or considerations
- Testing recommendations

Common Optimization Patterns

Performance Optimizations:

  • Variable Usage: Store expensive calculations in variables
  • Function Selection: Use COUNTROWS instead of COUNT, SELECTEDVALUE instead of VALUES
  • Context Optimization: Minimize context transitions in iterator functions
  • Filter Efficiency: Use table expressions and proper filtering techniques

Readability Improvements:

  • Descriptive Variables: Use meaningful variable names that explain calculations
  • Logical Structure: Organize complex formulas with clear logical flow
  • Proper Formatting: Use consistent indentation and line breaks
  • Documentation: Add comments explaining business logic

Error Handling:

  • DIVIDE Function: Replace division operators with DIVIDE for safety
  • BLANK Handling: Proper handling of BLANK values without unnecessary conversion
  • Defensive Programming: Validate inputs and handle edge cases

Example Output Format

/* 
ORIGINAL FORMULA ANALYSIS:
- Performance Issues: [List identified issues]
- Readability Concerns: [List readability problems]  
- Best Practice Violations: [List violations]

OPTIMIZATION STRATEGY:
- [Explain approach and changes]

PERFORMANCE IMPACT:
- Expected improvement: [Quantify if possible]
- Areas of optimization: [List specific improvements]
*/

-- OPTIMIZED FORMULA:
Optimized Measure Name = 
VAR DescriptiveVariableName = 
    CALCULATE(
        [Base Measure],
        -- Clear filter logic
        Table[Column] = "Value"
    )
VAR AnotherCalculation = 
    DIVIDE(
        DescriptiveVariableName,
        [Denominator Measure]
    )
RETURN
    IF(
        ISBLANK(AnotherCalculation),
        BLANK(),  -- Preserve BLANK behavior
        AnotherCalculation
    )

Request Instructions

To use this prompt effectively, provide:

  1. The DAX formula you want optimized
  2. Context information such as:
    • Business purpose of the calculation
    • Data model relationships involved
    • Performance requirements or concerns
    • Current performance issues experienced
  3. Specific optimization goals such as:
    • Performance improvement
    • Readability enhancement
    • Best practice compliance

…

자주 묻는 질문

DAX는 무엇인가요?

DAX(Data Analysis Expressions)는 Power BI에서 데이터에 대한 계산과 분석을 만드는 데 쓰는 언어입니다.

DAX 수식을 왜 최적화하나요?

최적화된 수식은 Power BI 보고서를 더 빠르고, 이해하기 쉽고, 오류가 덜 나게 만듭니다.

사용하려면 코딩을 알아야 하나요?

아니요. 개선하고 싶은 DAX 수식과 그 수식이 무엇을 하는지만 알면 됩니다.

상세 정보

작성자의 원본 설명

Comprehensive Power BI DAX formula optimization prompt for improving performance, readability, and maintainability of DAX calculations.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7334
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬