cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fatimah_33
Helper I
Helper I

Calculate a Previous Value of a Column in Excel Connected to power app

I have a column in an Excel sheet that its value calculated by summing (the new value with its previous value). This file is connected to a power app. I could not calculate the column value via the power app. How can do it ??  

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi@Fatimah_33,

Based on the issue that you mentioned, do you want to display the calculated excel column in PowerApps?
I am afraid that it cannot be achieved in PowerApps currently.

If you insist on do summarization in Excel, you can check the following article for reference.

https://www.powernimbus.com/2019/09/getting-excel-calculated-data-in-powerapps-using-flow-regexp-met...
As an alternative solution, would you like to do this calculation within PowerApps?
Apps that you create in Power Apps behave very much like Excel. Instead of updating cells, you can add controls wherever you want on a screen and name them for use in formulas.
Since you have a calculated column where summing the new value with its previous value, this could be achieved with a global variable within PowerApps.
1/Add a text-input control, named TextInput1, and 1 button, named Add.
2/To update the running total whenever a user selects the Add button, set its OnSelect property to this formula:

 

Set( RunningTotal, RunningTotal + TextInput1 )

 

3/Add a Label control, and set its Text property as below:

 

RunningTotal

 

0729Gif1.gif

Best Regards,

Qi

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi@Fatimah_33,

Based on the issue that you mentioned, do you want to display the calculated excel column in PowerApps?
I am afraid that it cannot be achieved in PowerApps currently.

If you insist on do summarization in Excel, you can check the following article for reference.

https://www.powernimbus.com/2019/09/getting-excel-calculated-data-in-powerapps-using-flow-regexp-met...
As an alternative solution, would you like to do this calculation within PowerApps?
Apps that you create in Power Apps behave very much like Excel. Instead of updating cells, you can add controls wherever you want on a screen and name them for use in formulas.
Since you have a calculated column where summing the new value with its previous value, this could be achieved with a global variable within PowerApps.
1/Add a text-input control, named TextInput1, and 1 button, named Add.
2/To update the running total whenever a user selects the Add button, set its OnSelect property to this formula:

 

Set( RunningTotal, RunningTotal + TextInput1 )

 

3/Add a Label control, and set its Text property as below:

 

RunningTotal

 

0729Gif1.gif

Best Regards,

Qi

Best Regards,
Qi

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,962)