cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bonifacious
Frequent Visitor

Populate dropdown with PowerBIIntegration data?

Hi!

I am new to powerapps and trying to figure out the best practices for my first app which will be integrated into Power BI.

The main idea of my app is to collect comments from the users via form in which I need to have several dropdowns with the data fields that I have in Power BI and later collected data is stored in Excel.

So, I am trying to create a dropdown at form screen and set column from PowerBIIntegration datasource as an AllowedValues, but nothing seems to work. Is it even possibe to do it?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @bonifacious 

Could you please share a screenshot about your issue?

Do you want to populate a Dropdown box with values from the PowerBIIntegration.Data?

Further, could you please share a bit more about the data set you used in your Power BI report? Is it a Excel table?

 

Based on the issue that you mentioned, if you want to populate a Dropdown box with values from the PowerBIIntegration.Data, please take a try with the following workaround:

1. I assume that the Data set you used in your Power BI report is a Excel table, please consider add the corresponding Excel table as data source within your embedded canvas app. Then connect the Edit form to the Excel table data source.

2. Within your Edit form, select the field data card which you want to configure as a Dropdown box. Then edit field, expand the corresponding field, then switch the Control Type to "Allowed values":

1.JPG

3. Set the Items property of the Dropdown box to following:

[@PowerBIIntegration].Data.ColumnName

set the Update property of the field data card which contains above Dropdown box to following:

DataCardValue3.Selected.ColumnName

Note: The ColumnName represents the column in your Excel table, which you want to display within the Dropdown box. If above formula could not work in your app, please set the Items property of Dropdown box to following:

Distinct('Your Excel Table', ColumnName)

set the Update property of the field data card which contains above Dropdown box to following:

DataCardValue3.Selected.Result

Please consider take a try with above solution, check if the issue is solved.

 

Test.gif

 

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @bonifacious 

Could you please share a screenshot about your issue?

Do you want to populate a Dropdown box with values from the PowerBIIntegration.Data?

Further, could you please share a bit more about the data set you used in your Power BI report? Is it a Excel table?

 

Based on the issue that you mentioned, if you want to populate a Dropdown box with values from the PowerBIIntegration.Data, please take a try with the following workaround:

1. I assume that the Data set you used in your Power BI report is a Excel table, please consider add the corresponding Excel table as data source within your embedded canvas app. Then connect the Edit form to the Excel table data source.

2. Within your Edit form, select the field data card which you want to configure as a Dropdown box. Then edit field, expand the corresponding field, then switch the Control Type to "Allowed values":

1.JPG

3. Set the Items property of the Dropdown box to following:

[@PowerBIIntegration].Data.ColumnName

set the Update property of the field data card which contains above Dropdown box to following:

DataCardValue3.Selected.ColumnName

Note: The ColumnName represents the column in your Excel table, which you want to display within the Dropdown box. If above formula could not work in your app, please set the Items property of Dropdown box to following:

Distinct('Your Excel Table', ColumnName)

set the Update property of the field data card which contains above Dropdown box to following:

DataCardValue3.Selected.Result

Please consider take a try with above solution, check if the issue is solved.

 

Test.gif

 

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you, @v-xida-msft !

Basically I have 2 datasources for the app:
1) PowerBIIntegration from a reports which uses Oracle database.
2) Excel in which I want to store the results of the submitted form.

I do want some fields of the form to be populated by the PowerBIIntegration data and save them in Excel stored in OneDrive. I tried to add PowerBIIntegration as a datasource for values, but can't see anything (see attachment). Do I need to connect to Oracle in order to see data since the Power BI's datasource is Oracle.

 

Thanks!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (92,051)