![Learn Microsoft Flow in kalmstrom.com Tips articles Microsoft Flow icon](https://kalmstrom.com/images/Microsoft/flow-icon.png)
Flow that creates and send e-mail report
The flow I describe in the article and in the demo below, will generate an e-mail report with the total number of projects and the sum of the approved budgets for these projects. A 'Schedule - Recurrence' trigger will make sure that the flow sends an e-mail with this content on the same day every month.
Flow variables for calculation
A variable is like a container that holds different types of information, and you can use variables for storing, modifying and retrieving any kind of data. In my report generating flow, I first Initiate the variables (required in Flows), then I Increment them and finally I read the variable values into the e-mail body.
![kalmstrom.com tutorial on how to monthly project reports with Microsoft Flow. Microsoft flow generated e-mail](https://www.kalmstrom.com/Tips/SharePoint-Flows/images/Flow-Variables-Reports.png)
I initialize two variables, one for the number of projects in a SharePoint list and one for the total of the approved budgets. The values in these variables are calculated by two Increment variable actions. They are executed inside an 'Apply to each' action that loops through the project items.
E-mail with calculated figures
When the 'Apply to each' has looped through the list, and the values for the Initialize variables have been calculated, the flow sends an e-mail with the figures for number of projects and total budget. The values are added as dynamic content in the e-mail body.
The total budget sum in the e-mail has no thousand separator. I decided to not include a thousand separator in the demo, because it is, at least currently, very complicated to add. The report will still work and give a correct result that is sent punctually each month, so I hope the manager will be content without the separator!
![SharePoint Flows from Scratch, book and e-book from kalmstrom.com SharePoint Flows from Scratch cover](https://www.kalmstrom.com/Education/images/SharePoint-Flows-front.jpg)
My new book, SharePoint Flows from Scratch, will be published very soon, and the cover is already finished. I will come back and tell you more about it as soon as the book has been published on Amazon.
By Peter Kalmström
CEO and Systems Designer
kalmstrom.com Business Solutions