Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Collections 将数据表中的列中的数据添加到Power Apps中的集合_Collections_Powerbi_Powerapps - Fatal编程技术网

Collections 将数据表中的列中的数据添加到Power Apps中的集合

Collections 将数据表中的列中的数据添加到Power Apps中的集合,collections,powerbi,powerapps,Collections,Powerbi,Powerapps,请查看附加的应用程序图像。我有一个数据表,当用户在power BI报告中选择某个内容时,可以查看数据。我想在单击按钮时将联系人id列中的数据和文本字段(主题、描述)中的数据放入集合。我在按钮中有以下代码,但它不工作。联系人id未添加到集合中 我想要的收藏是: ContactID Subject Description FF388... ddd dd FF413... ddd dd 这是: Collect( DVdetails, { MyCont

请查看附加的应用程序图像。我有一个数据表,当用户在power BI报告中选择某个内容时,可以查看数据。我想在单击按钮时将联系人id列中的数据和文本字段(主题、描述)中的数据放入集合。我在按钮中有以下代码,但它不工作。联系人id未添加到集合中

我想要的收藏是:

 ContactID  Subject Description
 FF388...   ddd dd
 FF413...   ddd dd
这是:

Collect(
    DVdetails,
    {
        MyContactID: TableName.Selected.ContactID,
        Subject: I_Subject.Text,
        Description: I_Description.Text
    }
)
我不知道您是否注意到了,但您需要选择要处理的行。因此,要让powerapps知道您正在谈论选定的行,您需要这样做。
如果你有更多问题,请告诉我。致意

Collect(
    DVdetails,
    {
        MyContactID: TableName.Selected.ContactID,
        Subject: I_Subject.Text,
        Description: I_Description.Text
    }
)