将列转换为Collection Power应用程序中的行

发布于 2025-02-01 14:07:22 字数 383 浏览 5 评论 0 原文

如何从此集合转换:

”在此处输入图像描述“

喜欢这样:

”在此处输入图像说明”

How to convert from this collection:

enter image description here

to like this:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

以为你会在 2025-02-08 14:07:22

不,这是不可能的。表(如电源应用程序中的几乎所有内容)都是强烈键入的,这意味着它具有明确的模式,可以在公式中引用。由于收集的值未提前知道,因此您将无法在公式中引用它们。

您也许可以使用 groupby函数< /a>创建一个类似于下面的集合:

”分组表“

No, this is not possible. Tables (like almost everything in Power Apps) are strongly typed, meaning that it has a well-defined schema that can be referenced within formulas. Since the values from the collection are not known ahead of time, then you would not be able to reference them in the formulas.

You may be able to use something like the GroupBy function to create a collection similar to the one below:

Grouped table

我一直都在从未离去 2025-02-08 14:07:22

(仅因为我已经从以前的答案中嘲笑了数据:))

ui:嵌套画廊

”在此处输入图像描述”

powerfx:正如@carlosfigueira所提到的

那样 coldata 是原始帖子集中显示的数据

  • galparent to groupby(coldata,“ principaldisplayname”,“ group”)
  • set galchild /code> to thisItem.group

Visual>

“在此处输入图像说明”

(Only because I had the data already mocked from a previous answer :) )

UI: Nested Gallery

enter image description here

PowerFX: Exactly as @carlosfigueira mentioned

Assuming colData is the data shown in original post

  • Set galParent to GroupBy(colData, "principalDisplayName", "group")
  • Set galChild to ThisItem.group

Visual

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文