Skip to content

Financial Sample 实战项目 ​

项目目标 ​

用 Power BI Financial Sample 完成一个一页式 Dashboard:

Sales and Profit Performance Overview

最终页面需要回答:

  1. 销售额和利润总体表现如何?
  2. 哪些国家贡献最大?
  3. 哪些 Segment 贡献最大?
  4. 哪些产品利润率有风险?
  5. 折扣是否可能影响利润?

Step 1:加载数据 ​

使用 Power BI Desktop 的 sample data 或老师提供的 Financial Sample Excel。

确认表名:

text
financials

确认关键字段:

text
Segment, Country, Product, Discount Band, Units Sold,
Gross Sales, Discounts, Sales, COGS, Profit,
Date, Month Number, Month Name, Year

Step 2:用 AI 生成分析方案 ​

Prompt:

text
Act as a senior BI analyst.

Using the financials table, help me build a Power BI dashboard for finance leaders.

Columns:
Segment, Country, Product, Discount Band, Units Sold,
Gross Sales, Discounts, Sales, COGS, Profit,
Date, Month Number, Month Name, Year.

Business goal:
Understand sales, profit, margin, discount impact, and product/country performance.

Output:
1. Key business questions
2. DAX measures
3. Visuals
4. Slicers
5. One-page layout

Step 3:创建 Measures ​

在 Power BI Desktop 中创建这些 Measures:

DAX
Total Sales = SUM(financials[Sales])

Total Profit = SUM(financials[Profit])

Total COGS = SUM(financials[COGS])

Total Units Sold = SUM(financials[Units Sold])

Discount Amount = SUM(financials[Discounts])

Profit Margin = DIVIDE([Total Profit], [Total Sales])

Discount Rate = DIVIDE([Discount Amount], SUM(financials[Gross Sales]))

格式建议:

Measure格式
Total SalesCurrency / Millions
Total ProfitCurrency / Millions
Total COGSCurrency / Millions
Total Units SoldWhole number
Profit MarginPercentage
Discount RatePercentage

Step 4:验证 Measures ​

创建一个 Matrix:

  • Rows:Country
  • Values:Total Sales, Total Profit, Profit Margin, Discount Rate

检查:

  1. 总数是否合理。
  2. 分国家数据是否变化。
  3. Profit Margin 是否百分比格式。
  4. Discount Rate 是否不是异常大于 100%。

Step 5:搭建 Dashboard 页面 ​

顶部 KPI ​

创建 4 个 Card:

  • Total Sales
  • Total Profit
  • Profit Margin
  • Total Units Sold

趋势图 ​

Line chart:

  • X-axis:Date 或 Month Name
  • Y-axis:Total Sales

如果月份排序不正确,优先使用 Date。

国家排名 ​

Bar chart:

  • Y-axis:Country
  • X-axis:Total Profit
  • Sort by:Total Profit descending

Segment 分析 ​

Bar chart:

  • Y-axis:Segment
  • X-axis:Total Sales

产品利润率 ​

Bar chart:

  • Y-axis:Product
  • X-axis:Profit Margin
  • Sort by:Profit Margin ascending 或 descending

Slicers ​

至少添加:

  • Year
  • Country
  • Segment
  • Product

Step 6:用 AI 写摘要 ​

Prompt:

text
I created a Power BI dashboard using the financials table.

Visuals:
- Total Sales
- Total Profit
- Profit Margin
- Total Units Sold
- Sales by Month
- Profit by Country
- Sales by Segment
- Profit Margin by Product
- Slicers for Year, Country, Segment, and Product

Write a 5-bullet executive summary template.
Include overall performance, top contributors, profitability risks, discount impact, and recommended next actions.

注意:如果 AI 没有直接看到报表数据,它只能写摘要模板。真实结论需要根据图表数据改写。


Step 7:最终检查清单 ​

发布或展示前,检查:

  • [ ] 页面标题是否清楚。
  • [ ] KPI 是否有单位。
  • [ ] 利润率是否用百分比。
  • [ ] 图表是否排序。
  • [ ] Slicer 是否能影响主要图表。
  • [ ] 颜色是否统一。
  • [ ] AI 生成的摘要是否和图表一致。
  • [ ] 是否写清楚“初稿,需要按真实业务口径复核”。

完成标准 ​

学员完成后,至少能说清楚:

  1. 这个 Dashboard 回答什么业务问题。
  2. 每个 Measure 的定义是什么。
  3. AI 帮了哪几步。
  4. 哪些地方不能盲信 AI。
  5. 后续如何用自己的 Excel 数据复现。

Saint-Gobain · AI + Power BI Internal Training · Lang Wu