如何基于Powerapps中的其他列提取列项目?

时间:2018-12-06 03:24:59

标签: powerapps powerapps-formula

下面的图像是excel数据表中的样本数据(整个数据很多,所以我在这里只放了一些样本数据): enter image description here enter image description here

下面是我尝试过的canvas-app函数,但似乎不起作用:

If("1" in Area.buildingID && "1" in Area.'storey ', Distinct(Area,'areaName '))

显示的列表中的结果是(不应显示最后一项Rooftop...。例如,Rooftop [areaName]来自楼层2和buildingID1。但是,我只想提取所有来自楼层1和buildingID 1:

enter image description here

所需的结果是,我想基于“楼层”和“ buildingID”列提取“ areaName”列值。

1 个答案:

答案 0 :(得分:0)

在这种情况下,您将首先根据所需条件Filter表:

Filter(Area, buildingID = "1", 'storey ' = "1")

然后,如果您只想显示'areaName '列的唯一值,则可以在第一个表达式的结果中使用Distinct function

Distinct(Filter(Area, buildingID = "1", 'storey ' = "1"), 'areaName ')