首页 文章

如何根据Powerapps中的其他列提取列项?

提问于
浏览
0

下图是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和buildingID 1.但是,我想只提取楼层1中的所有areaNames和buildingID 1:

enter image description here

期望的结果是我想基于“storey”和“buildingID”列提取“areaName”列值 .

1 回答

  • 0

    在这种情况下,您将根据您想要的条件首先Filter表:

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

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

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

相关问题