
Hello!
I've been trying to figure this out for quite sometime but I have not been able to fix the issue.
Apologies in advance for the long post
Background: creating a multi-form app that is embedded into a powerbi dashboard that has been published.
Sources: powerbi integration of several fields from an Opportunity table
multiple SharePoint lists - 1 per form
Powerbi interaction is used to select an Opportunity # in the dashboard which then shows the last entered data for the matching Opportunity # in the corresponding SP list within the embedded powerapp
Form with an issue: pricing form which has multiple data entry points (white) that then update calculated fields & totals (gray), automatically as the fields are updated (new forms & previously submitted forms
sample coding attached, I can add more if needed but there is a set() for each field & calculation on the OnVisible property of the screen as well as a set () on the OnChange property of the controls.
Issues:
main issue: while the fields automatically update correctly within make.powerapps.com, they do NOT updated automatically in the embedded app within the powerbi dashboard. Sometimes they update when Save a Draft or Submit buttons are selected but typically they do not. I've tried creating an "update calculations" button as a last resort but this does not update anything. Since the fields don't calcs & totals don't update properly, the data sent to SP is also incorrect when Submitted. The powerbi integration works properly so I have not been able to figure out why the interactions are different between the 2 different environments
secondary issue: the % entry fields do not always work properly. The data entry is being saved as a whole number to SP and is then supposed to be pulled back in at the whole # displayed in the field for previously submitted forms. The calculations were updated to calculate the whole number/100. Typically the initial entry works properly but then it will save to SP as say .15% instead of 15% so the updated calculations are way off
Attached: form layout & sample coding
Please help, I have lost countless days of productivity trying to correct this.