|
| 1 | +--- |
| 2 | +title: "Power Apps pattern: Calculation | Microsoft Docs" |
| 3 | +description: Learn how calculation apps make work easier and more accurate. For example, help someone select the right part, adjust equipment, or provide a price estimate. |
| 4 | +author: topness-msft |
| 5 | +ms.service: powerapps |
| 6 | +ms.topic: conceptual |
| 7 | +ms.custom: guidance |
| 8 | +ms.date: 07/20/2020 |
| 9 | +ms.author: phtopnes |
| 10 | +ms.reviewer: kathyos |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +# Pattern: Calculation |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +Power Apps makers use the calculation/transformation pattern to teach, to learn, |
| 19 | +and to make their work easier and more accurate. These apps might replace |
| 20 | +spreadsheets; apps are much easier to use and can provide outputs as charts or |
| 21 | +even audio. |
| 22 | + |
| 23 | +These apps take user input and perform calculations that can, for example, help |
| 24 | +someone select the right part, adjust equipment, or provide a price estimate. |
| 25 | +They can also rely on external data for reference or calculation, or on a |
| 26 | +service, as in the case of a translation app that uses Azure Cognitive |
| 27 | +Services. |
| 28 | + |
| 29 | +## How to recognize the calculation pattern |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +In a typical calculation scenario: |
| 34 | + |
| 35 | +1. A user inputs data into the app. |
| 36 | + |
| 37 | +1. The app returns a calculated result. |
| 38 | + |
| 39 | + - The calculation might use a Power Apps formula or call out to an external |
| 40 | + function (for example, a text translation service). |
| 41 | + |
| 42 | + - Calculations aren't always numeric. For instance, the result might be |
| 43 | + translated text or the transformation of a photo to a text description. |
| 44 | + |
| 45 | +1. The results are used in real time by the user. |
| 46 | + |
| 47 | + - In the most straightforward case, the user gets the result and does |
| 48 | + something with it. But this pattern also can be used to make games and |
| 49 | + other interactive effects, with the app logic making the next decision |
| 50 | + based on the calculated result. |
| 51 | + |
| 52 | + - A calculator pattern can be used to create a wizard that takes the user |
| 53 | + through a decision tree to troubleshoot an issue. |
| 54 | + |
| 55 | +The calculation pattern can be paired with other patterns. For example, a |
| 56 | +calculation can be used in the inspection/audit pattern and store the results of |
| 57 | +the calculation in the inspection report. |
| 58 | + |
| 59 | +## How customers are using the calculation pattern |
| 60 | + |
| 61 | +### Reliable Electric project cost estimation |
| 62 | + |
| 63 | +[Read the whole story.](https://powerapps.microsoft.com/blog/reliable-electric-power-platform-customer-story/) |
| 64 | + |
| 65 | +Reliable Electric creates complex bids for integrated electrical projects in |
| 66 | +high-end homes. These bids were created by using a legacy system that was limited |
| 67 | +to one user at a time and used a manual process based on Excel. Gone are the days of copying and pasting outputs into spreadsheets. The company has replaced |
| 68 | +this process with a single app built in Power Apps that manages the entire |
| 69 | +estimation process, a change that also reduces estimating-related manual workloads by half and dramatically lowers the potential for errors. |
| 70 | + |
| 71 | +This app has been tailored for Reliable Electric's business |
| 72 | +process by defining groups of materials and labor that can be used to calculate estimates more |
| 73 | +quickly. By moving to this app, they've reduced their time |
| 74 | +for data entry by half and can create bids more easily now that the data is |
| 75 | +instantly available. With its related improvements to labor, accuracy, and purchasing incorporated, the app built in Power Apps has saved Reliable Electric between CAD80,000 and CAD100,000 annually, compared to the top purpose-built electrical estimating solutions on the market. |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +### SNCF Manufacturing Configuration |
| 80 | + |
| 81 | +[Read the whole story.](https://powerapps.microsoft.com/blog/sncf-power-platform-customer-success-story/) |
| 82 | + |
| 83 | +[Watch a video.](https://youtu.be/WHtb7D1cVAI) |
| 84 | + |
| 85 | +Workers on the factory floor use an app to evaluate the parts for repairing a |
| 86 | +train. The app identifies the most suitable parts and configures the |
| 87 | +installation. The app then validates the result and provides |
| 88 | +calculations to estimate the end result of installing the selected parts. |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | +### SNCF Translation Assistant |
| 93 | + |
| 94 | +[Read the whole story.](https://powerapps.microsoft.com/blog/sncf-power-platform-customer-success-story/) |
| 95 | + |
| 96 | +In the calculation/transformation pattern, the calculations don't have to be |
| 97 | +done by the app itself, and they don't have to be numeric. The SNCF Translation |
| 98 | +Assistant app helps employees across Europe interact more effectively by using |
| 99 | +the Microsoft Translator service, the device's microphone, and the Power Apps audio |
| 100 | +control to provide translations to common phrases, targeted by job role and |
| 101 | +task. This example illustrates the use of an external algorithm, Microsoft |
| 102 | +Translator, while the app itself still provides real-time results to the user. |
| 103 | +In this case, the calculation is a transformation of one language into another. |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | +### TransAlta Economic Callouts |
| 108 | + |
| 109 | +[Read the whole story.](https://customers.microsoft.com/story/multi-national-energy-company-uses-powerapps-to-create-a-decision-validation-tool) |
| 110 | + |
| 111 | +[Watch a video.](https://youtu.be/e_dCMN3NDsg?t=2439) |
| 112 | + |
| 113 | +TransAlta is a multinational power generation and energy trading company. |
| 114 | +Using Power Apps, TransAlta built a decision-making tool called Economic |
| 115 | +Callouts to calculate the economic viability of sending an immediate response to |
| 116 | +wind turbine service calls outside of their core operating hours. |
| 117 | + |
| 118 | +When users open the Economic Callouts app, they're prompted to fill out |
| 119 | +fields such as the time of day, site ___location, number of turbines, and fault |
| 120 | +code. The app then generates prescribed actions from TransAlta's real-time data |
| 121 | +feed indicating how the problem should be resolved, how long it will take, and |
| 122 | +the number of technicians required to safely bring the equipment back online. |
| 123 | + |
| 124 | +The logic and decision-making behind the Power Apps solution goes much deeper |
| 125 | +than a simple "hours versus price" calculation to gain insight. Instead, Economic |
| 126 | +Callouts collects data via API (part of Azure App Service) through 11 different |
| 127 | +internal and external data sources to determine whether it's economically |
| 128 | +worthwhile to dispatch a wind technician. The data source includes labor costs, |
| 129 | +price forecasts, the average time it takes to repair an asset, and current |
| 130 | +market forecasts. |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | +### Elementary school classroom lessons |
| 135 | + |
| 136 | +[Read the whole story.](https://customers.microsoft.com/story/8bit-classrom-primary-secondary-education-powerapps) |
| 137 | + |
| 138 | +[Watch a video.](https://www.youtube.com/watch?v=Y3YiR3ZOTDc) |
| 139 | + |
| 140 | +Teacher Brian Dang of 8-bit Classroom created an app called Bits for students |
| 141 | +to practice spelling. The app evaluates the students' input in real time and |
| 142 | +provides results evaluating their spelling and scoring their work. Students can |
| 143 | +construct words by their individual sounds, record and blend words before trying |
| 144 | +to spell them out, and sort words according to detected patterns (for example, |
| 145 | +group all "-ity" or "-ing" words). |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | +Another application helps students understand how fractions are combined and |
| 150 | +multiplied, by performing real-time calculations to develop problem sets and to |
| 151 | +visually illustrate fractions and fraction multiplication. |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | +### Additional examples |
| 156 | + |
| 157 | +[Higher Education Crisis Financial Impact Tracker solution template](https://powerapps.microsoft.com/blog/tracking-financial-impact-for-higher-education-a-power-platform-template/) |
0 commit comments