[英]In a Power BI card can I display title right above data label?
How can I put title on a label in power BI desktop? 如何在Power BI桌面的标签上放置标题? Something like on a picture below:
如下图所示:
Alignment for title only can be on a left, right or centered. 标题的对齐方式只能在左,右或居中。
Reducing the card size will reduce the whole box itself: 减小卡的尺寸将减少整个包装盒本身:
I'm just trying to to the same report as here: https://app.powerbi.com/view?r=eyJrIjoiMjc2NzExODItMjNhYy00ZWMxLWI2NGItYjFiNWMzYzUzMzhlIiwidCI6IjU3NGMzZTU2LTQ5MjQtNDAwNC1hZDFhLWQ4NDI3ZTdkYjI0MSIsImMiOjZ9 我只是想获取与此处相同的报告: https : //app.powerbi.com/view?r=eyJrIjoiMjc2NzExODItMjNhYy00ZWMxLWI2NGItYjFiNWMzYzUzMzhlIiwidCI6IjU3NGMzZTU2LTQMMQQZN1I1D
And want to make sure I not missing anything. 并且要确保我不会丢失任何东西。
Observations 观察结果
This is indeed achieved by having a smaller Card
in front of a bigger black Rectangle
. 实际上,可以通过在较大的黑色
Rectangle
前面放置较小的Card
来实现。
You can see that the Focus mode
button is near in the middle, rather than in the upper right hand corner as other visuals, which suggests the size of the actual visual. 您可以看到“
Focus mode
按钮位于中间,而不是其他视觉效果的右上角,这表明了实际视觉效果的大小。
Using Chrome DevTools , you can see that it consists of a rect svg
in a div with class visual-basicShape
. 使用Chrome DevTools ,您可以看到它由div类别为
visual-basicShape
的rect svg
组成。 While the inner one is a smaller svg with class card
in a div with visual-card
class. 而内部的是带有
visual-card
类的div中具有类card
的较小svg。
Solutions 解决方案
So in Power BI, you can achieve so by inserting a rectangle with line and fill color set to black. 因此,在Power BI中,您可以通过插入一个矩形并将其线和填充颜色设置为黑色来实现。
And then add a smaller card visual with data label and title set to white. 然后添加一个较小的卡片视觉,其数据标签和标题设置为白色。
Make sure to send to back the rectangle element. 确保发送回矩形元素。
Results 结果
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.