cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

Question regarding re-use of formulea and peformance

If I have a formula suchs as:

 

Sum(Filter('[Order].[OrderDetail]', OrderHeaderID =galOrderHeader.Selected.OrderHeaderID),OrderDetailLineTotal )

which I have already assigned to a label and want to reference elsewhere in my app, is there any performance difference between referencing the label and including the full formula again?

 

For example, the formula above is for lblOrderTotalCalc and calculates the OrderDetailLineTotal for a given OrderHeader. I now want to display the total discount according to a selected OrderDiscountID. By using a reference to lblOrderTotalCalc (rather than inserting the full formula) as shown below am I saving a query to the datasource?

RoundDown(LookUp(LocalOrderDiscount, OrderDiscountID = DataCardValueOrderDiscountID*1, OrderDiscountPercent)*lblOrderTotalCalc/100,0)

Cheers

Paul

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Question regarding re-use of formulea and peformance

Hi @PaulD1,

 

Sorry but there is no way to do that in PowerApps so far. You will need to insert the full formula again. The second formula won't work as you wish. Though I think this is a good idea if the formula could be reuse. Consider to post this idea in the PowerApps Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Mona Li

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.
1 REPLY 1
Community Support Team
Community Support Team

Re: Question regarding re-use of formulea and peformance

Hi @PaulD1,

 

Sorry but there is no way to do that in PowerApps so far. You will need to insert the full formula again. The second formula won't work as you wish. Though I think this is a good idea if the formula could be reuse. Consider to post this idea in the PowerApps Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Mona Li

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.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 261 members 3,690 guests
Please welcome our newest community members: