简体   繁体   English

如何更改数据 label 在 Power BI Desktop 中显示不同列的值

[英]How to change data label displaying value of different column in Power BI Desktop

Stacked column chart displays Running Total budget vs Running Total Premium for each month.堆积柱形图显示每个月的Running Total budgetRunning Total Premium I also created New measurement:我还创建了新测量:

Percentage = 
DIVIDE( [RunningPremium], SUM(SafetyBudget[RunningTotalForecast]))

Which gives me this result:这给了我这个结果: 在此处输入图像描述

But how to display value of the Percentage column in Running Total Premium data label?但是如何在Running Total Premium数据 label 中显示Percentage列的值? Instead of 1.3M should be 166%, instead 2.7M should be 149% etc.而不是 1.3M 应该是 166%,而不是 2.7M 应该是 149% 等等。

So basically I want to keep chart as is, but display different value in data label.所以基本上我想保持图表不变,但在数据 label 中显示不同的值。 Something like this:像这样的东西:

在此处输入图像描述

I tried to add Percentage column as another 'value' , but still no luck.我尝试将 Percentage 列添加为另一个'value' ,但仍然没有运气。

在此处输入图像描述

I'm afraid this is not yet achievable in Power BI. 恐怕这在Power BI中尚无法实现。

When you add the Percentage column to the Value section, no result is shown because the values are so small (0~1) and negligible compared with the other values like the running sums (which is in millions). 当您将“ Percentage列添加到“ Value部分时,由于值太小(0〜1)并且与其他值(例如,总和)(百万计)相比可以忽略不计,因此不会显示任何结果。

The closest you can get in Power BI is to add the Percentage column to the Tooltips. 在Power BI中,最接近的是将“ Percentage列添加到“工具提示”中。 That way, when you hover over the stacked bar, the tooltip value will be displayed. 这样,当您将鼠标悬停在堆叠的栏上时,将显示工具提示值。

结果

也许问题太老了,但是您可以尝试使用Line和Stacked Bar,将百分比添加到Line并将笔触设置为零,并将数据标签设置为On。

If your model has a column having Percentage format Power BI chart will automatically show it with percentage sign by multiplying it with 100.如果您的 model具有百分比格式的列, Power BI 图表将通过将其乘以 100 自动显示百分比符号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用二进制数据列在Power BI桌面中创建关系 - Use binary data column to create relationship in Power BI desktop 为什么在Power BI Desktop的堆积柱形图乞求中看到“空白”或“ 0”值 - Why do I see “Blank” or “0” value at the begging of Stacked Column Chart in Power BI Desktop Power BI 桌面连接到用户名与我登录的用户名不同的数据源 - Power BI desktop connecting to data source with different user name than the one I am logged in as 从 SQL 服务器向 Power BI 导入数据时,如何动态更改 SQL 查询中使用的值? - When importing data into Power BI from SQL Server, how do you dynamically change a value used in the SQL query? 如何在POWER BI中减去不同行上的日期 - How to subtract dates on different rows in POWER BI Power BI 矩阵表中具有多种数据类型的列 - Column with multiple data types in Power BI Matrix Table 我可以在Power BI卡中的数据标签正上方显示标题吗? - In a Power BI card can I display title right above data label? 如何最好地将数据从SQL推送到Power BI? - How to best push data from SQL to Power BI? 无法从 SQL Server 数据库连接到 MS Power BI Desktop - Failed to connect from SQL Server database to MS Power BI Desktop 更改表中的列名 | 电力BI - Changing column name in table | Power BI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM