cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jacschZA
Level: Powered On

PowerBIIntegration - Form not recognizing the Primary Key - Multiple Keys in Table

Hi,

 

I have created a Gallery with the source being from a Power BI report (using the PowerBIIntegration function), and then I created a Form to edit and make changes to the same SQL database. Its source is to the SQL database and table.

 

In this case, the table has 5 columns which are the Keys for the table, and even if I add all keys to the PowerApps Visual, the Form is not able to recognize the data source behind the PowerBIIntegration. When inputting 'Gallery.Selected' i get the following error:

 

Invalid formula. Expected a value compatible with 'DataSource'

 

Has any had this issue where there is more than 1 Key on a table?

 

I have tried another table that has only 1 key, and the method seems to work fine.

 

Thanks.

2 REPLIES 2
Community Support Team
Community Support Team

Re: PowerBIIntegration - Form not recognizing the Primary Key - Multiple Keys in Table

Hi @jacschZA ,

 

What is the formula that you use in the Items property of Gallery and what is the Item property of Form control?

 

About PowerApps custom visual for Power BI, please refer to:

https://powerapps.microsoft.com/en-us/blog/powerbi-powerapps-visual/

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jacschZA
Level: Powered On

Re: PowerBIIntegration - Form not recognizing the Primary Key - Multiple Keys in Table

Hi @v-monli-msft ,

 

So my formula on the Items property of Gallery:

PowerBIIntegration.Data

Of which the Power BI report is linked to the exact same datasource as the Form.

 

And the Item property of Form control:

TEST11.Selected

 

The name of my Gallery  is "TEST11"

 

As mentioned I can get it to work with a SQL table that has only 1 key, but not on a table that has multi Keys on 1 table. Does this PowerBIIntegratin support Multi keys, or perhaps a work around?

 

Thanks in advance!

 

 

 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,495)