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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamically Add a User...
Power Apps
Suggested Answer

Dynamically Add a User Feedback Column with Writeback in Power BI using Power Apps.

(2) ShareShare
ReportReport
Posted on by 2
I am working on a Power BI report that contains a table with multiple column. I want to dynamically add a "Feedback" column where user can select values like "Yes" or "No" and write this data back to SQL db.
To achieve this, I am using PowerApps. I have selected the Id (Primary Key) and Feedback columns in PowerApps, but the data from Power BI is not appearing in PowerApps. To resolve this, I imported the data using an Excel file.
Now, I am facing an issue while adding a dropdown for user feedback. I want the dropdown to allow users to select either "Good" or "Bad" and store this selection in the SQL database. However, I am unable to properly configure this functionality.
How can I ensure the data flows correctly from Power BI to PowerApps and allow users to update feedback dynamically with writeback to SQL DB? Any guidance would be greatly appreciated.
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,827 Super User 2025 Season 2 on at
     

    You're on the right track by integrating Power BI with PowerApps for writeback to SQL — this is a powerful pattern! Let's walk through the steps to ensure everything works smoothly:


    ✅ Goal Recap

    You want to:

    1. Display a Power BI table with a "Feedback" column.
    2. Allow users to select "Good" or "Bad" via a dropdown in PowerApps.
    3. Write this feedback back to a SQL database.

    🧩 Key Steps to Achieve This

    1. Pass Data from Power BI to PowerApps

    In Power BI:

    • Add a PowerApps visual to your report.
    • Pass necessary fields (e.g., Id, Name, etc.) to PowerApps using the visual’s data fields pane.

    In PowerApps:

    • These fields will be available as a collection called PowerBIIntegration.Data.

     Important: You don’t need to import Excel — use PowerBIIntegration.Data directly.


    2. Create the Feedback Form in PowerApps

    In PowerApps:

    • Add a Gallery or Form to display PowerBIIntegration.Data.

    • Add a Dropdown control inside each row or form item:

    • Items = ["Good", "Bad"]

    • Bind the selected value to a variable or directly to a field.


    • 3. Write Back to SQL Database

      To write feedback to SQL:

    • Ensure you have a SQL table with columns like Id, Feedback.
    • Create a SQL connection in PowerApps.
    • Use the Patch function to update the SQL table:
    • Patch(

          '[dbo].[FeedbackTable]',

          LookUp('[dbo].[FeedbackTable]', Id = ThisItem.Id),

          { Feedback: Dropdown1.Selected.Value }

      )

      ✅ Make sure:

    • The SQL table has a primary key.
    • The SQL connection has write permissions.

    • ⚠️ Common Issues & Fixes

      Issue Fix
      PowerBIIntegration.Data not showing Ensure fields are passed into the PowerApps visual
      Dropdown not saving Use Patch or UpdateIf with correct SQL connection
      SQL write fails Check permissions and data types in SQL table

       

    🏷️ Tag me if you have any further questions or if the issue persists.
    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.
    ❤️ Give it a Like if you found the approach useful in any way.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard