Hi @laur1RDE24 ,
Do you want to conect to a Excel table with calculation column from an app?
Actually, it is an known limit with Excel table data source -- currently, we could not connect to a Excel table wich a Calculation column from a PowerApps app.
As an alternative solution, I think the built-in functions within PowerApps could achieve your needs. You could consider use the functions in PowerApps to calculate the consumtion between two "index" directly.
Please remove the Calculation column from your Excel table, instead, add a normal text column to store the consumtion value between two different "Index". Then you could consider create a Edit table using Gallery control within your app to list all records from your Excel table, then within the Gallery, add a Text Input box (TextInput1), set the Default property of the Text Input to following:
IndexColumn - AnotherColumn /* <-- calculate the consumtion */
After that, add a "Save" button outside the Gallery, set the OnSelect property to following:
ForAll(
RenameColumns(Gallery1.Allitems, "PrimaryColumn", "PrimaryColumn1"), /* <-- PrimaryColumn represents the column in your Excel table, which could identify one record uniquely */
Patch(
ExcelTable,
LookUp(ExcelTable, PrimaryColumn = PrimaryColumn1),
{
CalculationTextColumn: TextInput1.Text
}
)
)
More details about creating a Editable table using Gallery control in an app, please check the following video or blog:
https://www.youtube.com/watch?v=41Mpgn7svLs
https://www.youtube.com/watch?v=O2WqhRTUhyw
https://powerapps.microsoft.com/en-us/blog/editable-tables/
More detials about functions supported in PowerApps, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/formula-reference
Best regards,