【问题标题】:2 conditions in a Powerapps filter formulaPowerapps 过滤器公式中的 2 个条件
【发布时间】:2021-01-18 18:55:32
【问题描述】:

我使用了一些在 MIKAEL SVENSON 博客中找到的代码:https://www.techmikael.com/2019/01/a-no-nonsense-solution-to-implement.html。 下面是示例代码:

ForAll(
    Filter(
            Cities, // SharePoint list with all cities
            Country.Id = CountrySelector.Selected.Id // Pick cities where country matches the selected one
        )
    ,
    {
        Value: Title, // Create a new item with Value/Id, which will save correct
        Id: ID // It's important to have Value as the first field!
    }
)

如何添加其他条件?

这是我的示例:

ForAll(
    Filter(
            'Bâtiments/Zones', 
            Site.Value = SiteSelection.Selected.Value
        )
    ,
    {
        Value: Title, 
        Id: ID 
    }
)

这是我想做的:

ForAll(
     Filter(
             'Bâtiments/Zones', 
             Site.Value = SiteSelection.Selected.Value && Title = ZoneSelection.Selected.Value
         )
     ,
     {
         Value: Title, 
         Id: ID 
     } )

我尝试使用 & AND ||没有成功。

感谢您的帮助

【问题讨论】:

    标签: powerapps


    【解决方案1】:
    ForAll(
        Filter(
                'Bâtiments/Zones', 
                And(Site.Value = SiteSelection.Selected.Value,Titre=ZoneSelection.Selected.Value)
            )
        ,
        {
            Value: Local, 
            Id: ID 
        }
    )
    

    【讨论】:

    • 您可能需要编辑您的答案以解释代码的作用以及它的帮助。
    猜你喜欢
    • 1970-01-01
    • 2022-11-03
    • 1970-01-01
    • 2019-10-11
    • 2020-04-14
    • 2018-09-16
    • 2014-03-17
    • 2021-01-05
    • 2023-01-20
    相关资源
    最近更新 更多