如何过滤表以不同的值PowerApps
我是PowerApps的新手,我注意到独特的函数返回一个不同值的表(仅返回独特的列而不是完整行)。是否有一种方法可以过滤表,以便它返回完整表的子集,其中指定列中具有不同值。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我是PowerApps的新手,我注意到独特的函数返回一个不同值的表(仅返回独特的列而不是完整行)。是否有一种方法可以过滤表,以便它返回完整表的子集,其中指定列中具有不同值。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您可以为此使用GroupBy函数。看看文档下面的示例:
假设
Cities
是一张具有以下价值的表:表达式
groupby(城市,“乡村”,“城市”)
将返回带有“ country”的表,以及一个名为“城市”的列,其价值将为 带有的表格该国的所有城市。然后,您可以使用功能,例如 sum ,如下示例:
在您的推文示例中,如果您想从每天获得一条推文,则可以具有下面的表达式:
在每个日期起,它将具有新的列,并带有第一条推文。或者,如果您想要组中的一个字段,则可以拥有类似的东西:
You can use the GroupBy function for this. Take a look at the documentation, or in the example below:
Assuming that
cities
is a table with the following values:The expression
GroupBy(cities, "Country", "Cities")
will return a table with a column "Country", and a column called "Cities" whose value will be a table with all cities for that country.You can then use functions such as AddColumns and Sum to aggregate the values of the inner table, like in the example below:
In your tweets example, if you want to get one tweet from each day, you can have an expression like the one below:
Where it would have a new column with the first tweet from each date. Or if you want a single field from the group, you can have something like this: