4  The Journey Begins

5 Your First Connection

In this chapter, we’ll connect Claude to the SalesVP model — a real Power BI semantic model containing wine and spirits sales data. You’ll learn how to explore data models, write DAX queries, and get business insights through natural conversation.

TipWhat You’ll Learn
  • How to discover model structure
  • How to ask business questions
  • How to write and execute DAX queries
  • How to interpret and explain results

6 Step 1: Say Hello to Your Data

Let’s start with a simple connection test. This confirms Claude can reach the Power BI model.

6.0.0.1 Try It: Test the Connection

Copy this prompt into Claude Desktop:

“Can you connect to the SalesVP model and tell me what tables are available?”

Claude will:

  1. Request permission to use the Power BI MCP Server
  2. Connect to the SalesVP model
  3. List all tables in the semantic model

You should see tables like:

  • Sales — The main fact table with transactions
  • Product — Product dimension with names, categories
  • Date — Date dimension for time intelligence
  • GrossistMap — Wholesaler/distributor mapping
  • And more…

7 Step 2: Explore the Model Structure

Now let’s understand what data we’re working with.

7.0.0.1 Try It: Discover Measures

“What measures are defined in the SalesVP model? Show me the most important ones.”

This reveals the pre-built calculations in the model, such as:

Measure Description
Liter Total volume sold in liters
Flasker Total units/bottles sold
Liters ifjor Same period last year volume
Endring Liter % Year-over-year change percentage
YTD Year-to-date volume
Mkt Share Market share calculation
Note💡 Why This Matters

Understanding existing measures helps you leverage the model’s built-in intelligence rather than recreating calculations from scratch.

8 Step 3: Ask Business Questions

Here’s where the magic happens. Instead of writing complex DAX, just ask in plain English.

8.0.0.1 Try It: Natural Language Query

“What are the top 10 best-selling products by volume (liters)?”

Claude will:

  1. Understand you want a ranking
  2. Write the appropriate DAX query
  3. Execute it against the model
  4. Present the results in a clear format

8.1 More Example Questions

Try these prompts to explore different aspects of the data:

“How has total liter sales changed compared to last year?”

“Which wholesalers (grossister) have the highest sales volume?”

“Show me the monthly sales trend for 2024”

“What is the market share of 3-liter bag-in-box wines?”

9 Step 4: Understanding DAX Queries

As you work with Claude, you’ll see DAX queries being generated. Let’s understand the basics.

9.1 Anatomy of a DAX Query

Example DAX Query
EVALUATE
TOPN(
    10,
    ADDCOLUMNS(
        VALUES(Product[Product Name]),
        "Total Liters", CALCULATE(SUM(Sales[Volum]))
    ),
    [Total Liters], 0
)
Component Purpose
EVALUATE Required keyword to return a table
TOPN(10, ...) Return only the top 10 rows
ADDCOLUMNS(...) Add calculated columns to a table
VALUES(...) Get unique values from a column
CALCULATE(...) Evaluate an expression with context
TipPro Tip

Ask Claude to explain the DAX query it generates. This is a great way to learn DAX!

“Can you explain the DAX query you just wrote? What does each part do?”

10 Step 5: Iterative Analysis

Real analysis is iterative. Start broad, then drill down based on what you find.

10.1 Example Workflow

What were total sales in liters for 2024?

Total sales for 2024 were 125.4 million liters. Would you like me to break this down by month, product category, or region?

Yes, break it down by month. Is there a seasonal pattern?

Here’s the monthly breakdown… I can see peak sales in December (15.2M liters) and July (13.8M liters), with a dip in February (8.9M liters). This suggests holiday and summer seasonal patterns.

How does December 2024 compare to December 2023?

December 2024 (15.2M liters) was up 8.3% compared to December 2023 (14.0M liters). This is above the annual growth rate of 5.1%.

11 Step 6: Advanced Queries

Once comfortable, try more sophisticated analysis:

11.1 Time Intelligence

“Calculate the rolling 12-month average sales and compare it to the previous 12-month period”

11.2 Filtering & Segmentation

“Show me sales by price segment, but only for products over 1 liter”

11.3 Comparative Analysis

“Compare the top 5 products this year vs last year. Which products are growing fastest?”

11.4 Custom Measures

“Create a DAX measure that calculates the average price per liter”

12 Common Patterns

12.1 Pattern 1: Rankings

"Top/Bottom N by [metric]"

“What are the bottom 5 performing products by year-over-year growth?”

12.2 Pattern 2: Comparisons

"Compare [A] to [B] by [metric]"

“Compare bag-in-box wines to glass bottles by total volume and growth rate”

12.4 Pattern 4: Anomalies

"Find unusual patterns in [data]"

“Are there any products with unusually high or low sales compared to their historical average?”

13 Best Practices

Important✅ Do This
  1. Start with overview questions before drilling into details
  2. Ask Claude to explain queries and results
  3. Verify unexpected results by asking for the underlying data
  4. Save useful queries for future reference
Warning❌ Avoid This
  1. Requesting all raw data — ask for aggregations instead
  2. Vague questions — be specific about what you want
  3. Ignoring context — Claude remembers your conversation
  4. Not validating — spot-check results against known values

14 Hands-On Exercise

Now it’s your turn! Complete these tasks using the SalesVP model:

NoteExercise 1: Model Exploration
  1. List all tables in the model
  2. Find the total number of products (SKUs)
  3. Identify the date range of the sales data
NoteExercise 2: Business Analysis
  1. Find the top 10 products by sales volume
  2. Calculate the year-over-year change for those products
  3. Identify which product has the highest growth rate
NoteExercise 3: Create a Report

Ask Claude to summarize the key findings in a format suitable for a management presentation.

15 Summary

TipWhat You’ve Learned
  1. Connect Claude to Power BI semantic models
  2. Explore model structure (tables, measures, relationships)
  3. Query data using natural language
  4. Understand generated DAX queries
  5. Iterate from overview to detailed analysis

16 Next Steps

In Chapter 4: Making Confident Decisions, we’ll learn how to validate your findings with statistical analysis — ensuring you can make data-backed decisions with confidence.