【问题标题】:PowerBI and SharePoint lists: How do I count the number of rows with the PID value equal to each row's UID (the 3rd column needs the formula)PowerBI和SharePoint列表:如何统计PID值等于每行UID的行数(第3列需要公式)
【发布时间】:2022-05-17 22:48:52
【问题描述】:

我在下面有一个表格,我需要将最后一列计算为自定义度量/自定义列。我很感激有关公式的任何建议。请注意,这是一个单表。最后一列计算具有作为 PID 的行数,即相应行的 UID

请注意,我使用的是 SharePoint 列表,因此 ID 列的寻址将通过:'SharePoint list name'[Id] 这是调用 SharePoint 列表列时的标准语法。 p>

ID    PID   Count rows
1           2
2     1     1
3     1     0
4           0
5     2     0

非常感谢您考虑我的请求。

我正在使用 Power BI Desktop 2.83。

【问题讨论】:

    标签: list sharepoint count analytics dashboard


    【解决方案1】:

    我找到了答案:

    创建第二个相同的 SharePoint 列表并使用以下内容。

    Additional column =
        calculate (
            COUNTROWS('SharePoint list (replica)'),
            FILTER('SharePoint list (replica)','SharePoint list (replica)'[PID]='SharePoint list'[ID])
        )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-05
      • 1970-01-01
      • 1970-01-01
      • 2020-06-04
      • 1970-01-01
      • 1970-01-01
      • 2021-01-04
      • 2021-05-14
      相关资源
      最近更新 更多