topic Re: Calculation of Labels / Text Input inside PowerApp in Building Power Apps
https://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845698#M268841
<P><LI-USER uid="246154"></LI-USER> </P>
<P>Your Text property on the Total Cost label should be:</P>
<P><STRONG> Value(TextLabelKilometers.Text) * .9</STRONG></P>
<P> </P>
<P>You mention Label: 0.55, but I am not sure how that fits into what you want. In your picture, you have a multiplier label that has a Value of 0.55. I assume you wanted to calculate by that and not 0.90 as you stated in the text. If so, then your formula would be:</P>
<P><STRONG> Value(TextLabelKilometers.Text) * Value(TextLabelMultiplier.Text)</STRONG></P>
<P> </P>
<P>I hope this is helpful for you.</P>
<P> </P>Tue, 02 Mar 2021 18:59:02 GMTRandyHayes2021-03-02T18:59:02ZCalculation of Labels / Text Input inside PowerApp
https://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845679#M268829
<P>Hello everyone,</P><P> </P><P>I am working on an expense PowerApp with SP Lists as the data source. I am currently trying to create a cost of mileage calculation as attached (1).</P><P> </P><P>Is it possible for the PowerApp to do this calculation and ultimately serve the output? Unfortunately I cannot figure out how to automatically do the calculation in the field which makes it a bit difficult. </P><P> </P><P>What I am trying to achieve here is in a label: Calculate a number from another label and a text input label.</P><P> </P><P>For example:</P><P>Label: 0.55</P><P>Text Label: (amount of kilometers) for example, 10</P><P>Calculated Output: 0.90 * 10 = 9</P><P>**Note, I put the calculation in there, but only the calculated product is needed.</P><P> </P><P>Thanks for the assistance with this!</P>Tue, 02 Mar 2021 18:41:35 GMThttps://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845679#M268829i-worx_charlie2021-03-02T18:41:35ZRe: Calculation of Labels / Text Input inside PowerApp
https://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845698#M268841
<P><LI-USER uid="246154"></LI-USER> </P>
<P>Your Text property on the Total Cost label should be:</P>
<P><STRONG> Value(TextLabelKilometers.Text) * .9</STRONG></P>
<P> </P>
<P>You mention Label: 0.55, but I am not sure how that fits into what you want. In your picture, you have a multiplier label that has a Value of 0.55. I assume you wanted to calculate by that and not 0.90 as you stated in the text. If so, then your formula would be:</P>
<P><STRONG> Value(TextLabelKilometers.Text) * Value(TextLabelMultiplier.Text)</STRONG></P>
<P> </P>
<P>I hope this is helpful for you.</P>
<P> </P>Tue, 02 Mar 2021 18:59:02 GMThttps://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845698#M268841RandyHayes2021-03-02T18:59:02ZRe: Calculation of Labels / Text Input inside PowerApp
https://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845709#M268846
<P>Thank you very much Randy! Excellent and worked perfectly.</P>Tue, 02 Mar 2021 19:11:20 GMThttps://powerusers.microsoft.com/t5/Building-Power-Apps/Calculation-of-Labels-Text-Input-inside-PowerApp/m-p/845709#M268846i-worx_charlie2021-03-02T19:11:20Z