简体   繁体   English

我可以在Power BI卡中的数据标签正上方显示标题吗?

[英]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按钮位于中间,而不是其他视觉效果的右上角,这表明了实际视觉效果的大小。

对焦模式1 对焦模式2

Using Chrome DevTools , you can see that it consists of a rect svg in a div with class visual-basicShape . 使用Chrome DevTools ,您可以看到它由div类别为visual-basicShaperect 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.

相关问题 如何在 SQL 查询中引用 Power BI 度量? - How can I reference a Power BI measure in a SQL query? 如何更改数据 label 在 Power BI Desktop 中显示不同列的值 - How to change data label displaying value of different column in Power BI Desktop 如何从切片器上选择的年份开始在面积图中显示数据,并在Power BI中获得接下来的所有年份 - How to display data in area chart starting from the year chosen on a slicer and get all following years in Power BI Power BI 桌面连接到用户名与我登录的用户名不同的数据源 - Power BI desktop connecting to data source with different user name than the one I am logged in as 如何在Power BI中根据日期字段获取过期任务的数量? - How can I get the number of OverDue tasks based on date field in Power BI? 如何最好地将数据从SQL推送到Power BI? - How to best push data from SQL to Power BI? 使用二进制数据列在Power BI桌面中创建关系 - Use binary data column to create relationship in Power BI desktop 从Power BI中的SQL数据源中选择特定的表 - Select specific tables from an SQL data source in Power BI 从 SQL Server 在 Power Bi 中创建历史数据集 - Creating a historical data set in Power Bi from a SQL Server SQL 在哪里停止,Power BI 中的数据建模从哪里开始? - Where does SQL stop and data modelling in Power BI start?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM