在Power BI中过滤时,如何重新计算总数的百分比?

发布于 2025-01-24 14:51:15 字数 374 浏览 2 评论 0原文

由于我不确定如何表达自己,我将更好地演示我需要做的事情。 这是样本DB。 您会看到在这里

我们有一个类别切片机,并且在桌子上显示了销售百分比给定的产品及其描述。 在下一张照片我使用切片机在“ 16GB”类别上过滤产品。我的任务是在过滤时,总计100%的百分比和不同的产品以显示总数的百分比(作为类别的一部分,而不是所有其他产品和类别的一部分)。 先感谢您!

As I am not really sure how to express myself, I'll better demonstrate what I need to be done.
This is a sample DB.
You see here

that we have a category slicer and on the table is show the percentage of sales for a given product and its description.
On the next photo I used the slicer to filter the products on the "16GB" category. My task is when filtering, the total of the % to show 100% and the distinct products to show the percentage of this total (as part of the category, not of all other products and categories).
Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水晶透心 2025-01-31 14:51:15

您需要在数据集中有一个原始金额。我能够使用此示例数据

然后,对于Power BI中的两个表视觉效果,您应该选择显示为Grand总数的百分比金额值。这将使Power BI能够随着切片机更改的滤波器标准动态计算百分比。

这是结果

You need to have a raw amount in your dataset. I was able to do this using this sample data.

Then for both table visuals in Power BI, you should select show value as percent of grand total for the amount value. This will allow Power BI to calculate the percentages dynamically as the filter criteria from the slicer changes.

Here is the result.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文