[英]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 budget
与Running 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.