You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PowerBI矩阵钻取时市场份额计算丢失筛选上下文问题求助

PowerBI钻取矩阵层级时市场份额度量值丢失筛选上下文问题

问题概述

在PowerBI中计算市场份额时,钻取到矩阵的产品层级后,度量值会丢失筛选器设置的筛选上下文,导致市场份额计算基数错误。

简化示例数据

销售原始数据

ProductSales
Product150
Product230
Product318
Product465
Product594
Product620
Product754
Product824
Product9145

产品主数据(关联产品、类别与品牌)

ProductCategoryBrand
Product1ABrand1
Product2ABrand1
Product3ABrand1
Product4BBrand2
Product5BBrand2
Product6BBrand2
Product7ABrand3
Product8ABrand3
Product9CBrand4

当前使用的度量值

用于计算MarketSize的DAX公式:

MarketSize = CALCULATE(Sum(Sales[Sales])
,ALLEXCEPT(Sales
,ProductMaster[Category]
))

问题表现

  • 在品牌层级查看份额时,该度量值计算正常;
  • 钻取到品牌下的产品层级后,总市场值从355变为176,Brand1的份额从28%变为56%——此时筛选器选中的Category B的市场值被忽略;
  • 需求:钻取矩阵层级时,份额计算需始终以筛选器选中的Category A和B的总和为基数,即Brand1的份额保持28%。

内容的提问来源于stack exchange,提问作者Antoinette du Toit

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.18 09:35:33