web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps & Power BI: ...
Power Apps
Answered

PowerApps & Power BI: PowerBIDataIntegration.Data Value in New Form

(0) ShareShare
ReportReport
Posted on by

Hi,

I am trying to develop a PowerApp to embed in Power BI. In the Power BI it is display a user's data.  In the PowerApp I want to have a form to allow users to submit changes they would like to make about their data via creating an item in a SharePoint list and passing the value selected in the Power BI as a value in a field of the SharePoint list.

 

Is there a way to convert the value from the PowerBI Integration from table to text? Below is an example of what I am trying to accomplish:

 

If(Form1.Mode = New,(Patch('Submissions', {ID: Blank()}, Form1.Updates, { Name: [@PowerBIIntegration].Data.Name)); SubmitForm(Form1); Navigate(Screen3)

 

Thanks!

 

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @skwan 

     

    [@PowerBIIntegration].Data always returns a collection 

     

    First([@PowerBIIntegration].Data).Name - will give you the first value from Power BI connection

    If user selects 1 item in Power BI then First([@PowerBIIntegration].Data) will give you that item

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @skwan ,

    Firstly, please note that the right syntax of Patch function shoule be:

    Patch(tablename,Defaults(tablename),{.....})   //create a new record

    Patch(tablename,one item,{....})  //edit an existing record 

     

    Secondly,the formula that you use:

    {ID: Blank()}, Form1.Updates, { Name: [@PowerBIIntegration].Data.Name

    This can not represent a record. A record shoule be like this: {field1:....,field2:.....,field3:....}

    I suggest you try this:

    If(Form1.Mode = New,
    ClearCollect(test,AddColumns(Form1.Updates,"ID", Blank(),"Name",First([@PowerBIIntegration].Data).Name))
    ); //create a collection with the data of Form1,ID and Name, use First(table).fieldname could result a value
    Collect('Submissions',test); //user this collection to update
    Navigate(Screen3)

    Here's a doc about Patch, I think maybe you need to know more about it :

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch

     

     

    Best regards,

     

  • dkarmoha Profile Picture
    2 on at

    Hi,

     

    when I try to connect a data table from Dataverse which has a column (multi-select dropdown) and try to display the column in PowerBI, I can see that it's fetching only the IDs (eg. 11690001,11690002) and not the string values. I even tried using DirectQuery. Please suggest a way to resolve this.

    dkarmoha_0-1656396342326.pngdkarmoha_1-1656396357640.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard