powerapps - Powerapps 过滤器公式中的 2 个条件
问题描述
我使用了 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 || 没有成功。
谢谢您的帮助
解决方案
ForAll(
Filter(
'Bâtiments/Zones',
And(Site.Value = SiteSelection.Selected.Value,Titre=ZoneSelection.Selected.Value)
)
,
{
Value: Local,
Id: ID
}
)
推荐阅读
- python - 如何设置笔记本电脑麦克风以用于语音识别
- java - 同步线程以从 arduino 发送和接收数据
- reactjs - 如何在 react-bootstrap 导航栏中正确设置路由
- python - 构建一个能够以特定顺序运行一些任务的简单应用程序
- javascript - 根据另一个对象数组的属性值对数组进行排序
- php - pdomodel:只有 fech 1 行
- java - 从其他活动向 Handler 发送消息
- c - 为什么生成的解析器会出现语法错误?
- wordpress - 从我的虚拟主机下载 zip 文件
- django - 使用 post_save 信号更新用户配置文件问题。错误消息是用户在更新时已经存在