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 / Don't understand it - ...
Power Apps
Unanswered

Don't understand it - Invalid Formula. Expected a value compatible with 'DataSource'

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

I try to do a demo to write back to the SQL Server source with PowerApp in a Power BI Report. Actually it's exactly like in this example:
https://www.youtube.com/watch?v=LxuRzj0X348

 

I try to do it with AdventureWorksDW2017 and the table FactSalesQuota. In Power BI I pass through the following fields from the table FactSalesQuota:

PowerApp1.png

 

In PowerApp I did a gallery (shows the Power BI values) and added an edit field (connected to the SQL Server datasource FactSalesQuota). There I tried to make a connection to the gallery by putting as item myGallery.Selected

 

PowerApp2.png

 

But I always get the error message "Invalid Formula. Expected a value compatible with 'DataSource'". Yes, I searched the forum and I didn't understand it at all.

 

How do I pass the right fields to the PowerApp that it can display the selected values? I appreciate any help

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    I have made a test on my side, and also have the same issue.

    The cause of issue is that date column is divided into Day, Month, Quarter, Year columns. However the Original SQL Data source is still data column. So the error show the items isn’t compatible with 'DataSource'.

     

    Annotation 2019-09-02 150244.png

    The work around is changing “Date Hierarchy (Defaults)” to “date” by right-clicking when you select Fields to PowerApps Data, so that the date column will not be divided.

    Then just keep the previous step, it will work fine.

    Annotation 2019-09-02 151633.png    Annotation 2019-09-02 151103.png

    Best regards,

    Sik

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard