Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powerbi 如何使用功率bi计算平均值_Powerbi_Powerbi Desktop_Powerbi Embedded_Powerbi Datasource_Powerbi Custom Visuals - Fatal编程技术网

Powerbi 如何使用功率bi计算平均值

Powerbi 如何使用功率bi计算平均值,powerbi,powerbi-desktop,powerbi-embedded,powerbi-datasource,powerbi-custom-visuals,Powerbi,Powerbi Desktop,Powerbi Embedded,Powerbi Datasource,Powerbi Custom Visuals,在power bi中,我有两张桌子 表1座位总数 地点1 100个座位 场地2 150个座位 表2使用的座位数量 地点1 40个座位 地点2 75个座位 我需要计算一下用了多少座位 ex 40/100*100=40% 有人能帮我吗 **当前数据库我无法加入这些表 尝试使用average函数无效假设您的表如下所示: 表1: 表2: 在现场场馆的表1和表2之间创建一个关系,然后您可以创建一个度量: Seat Utilisation = DIVIDE ( SUM ( 'Table 2'[S

在power bi中,我有两张桌子

表1座位总数 地点1 100个座位 场地2 150个座位

表2使用的座位数量 地点1 40个座位 地点2 75个座位

我需要计算一下用了多少座位

ex 40/100*100=40%

有人能帮我吗

**当前数据库我无法加入这些表


尝试使用average函数无效

假设您的表如下所示:

表1:

表2:

在现场场馆的表1和表2之间创建一个关系,然后您可以创建一个度量:

Seat Utilisation = 
DIVIDE ( 
    SUM ( 'Table 2'[Seats Used] ),
    SUM ( 'Table 1'[Total Seats] ),
    BLANK()
)
有关PBIX文件的示例,请参见

Venue    | Seats Used
----------------------
Venue 1  |         40
Venue 2  |         75
Seat Utilisation = 
DIVIDE ( 
    SUM ( 'Table 2'[Seats Used] ),
    SUM ( 'Table 1'[Total Seats] ),
    BLANK()
)