Sign-up now and get instant access
Leave a comment
Beginner to advanced classes taught by Microsoft MVPs and Authors.
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Customized training to master new skills and grow your business.
Quick references for when you need a little guidance.
Summaries developed in conjunction with our Learn with the Nerds sessions.
Digital goodies - code samples, student files, and other must have files.
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
It's time to address your client's training needs.
Learn how to get into IT with free training and mentorship.
Discover the faces behind our success: Meet our dedicated team
How can we help? Connect with Our Team Today!
Find all the information you’re looking for. We’re happy to help.
A few weeks back I was getting towards the end of a hackathon with a great group out of Tennessee. They had one “dream ask” after we had finished building their Power App. They wanted the app to automatically calculate the mileage their IT support technicians traveled from one site location to the next. I had never broached this idea in an application I had built in the past, but I said let’s see what we can do.
Well, the good news is Power Apps has a Bing connector that can tap into maps that can do all sorts of things. One of those is exactly what they wanted, to calculate the distance between two different sites. We started basic by typing in the address of one school location in a text input control and the address of another school location in a second text input control. From there we wired up a button that used the Bing connector to calculate the driving distance in miles.
Once we figured out how to get that to work, we got more ambitious and said let’s store these site locations in our data source and have our users select them from a drop-down box in a form to calculate the distance. From there, we took it over to a form in our app to store the mileage calculation. Now, at the end of the month, we can run a report for each technician to submit their mileage for reimbursement. I’m sure the technicians are going to be thrilled with this as they don’t have to calculate the mileage and submit on their own. The department in charge of reimbursement might not be as happy as more mileage reimbursement forms will come through 😉
To get an idea of how this can be done in a canvas app check out this YouTube video I made after we finished our hackathon together.
Some things to note if you decide to implement this feature in a Canvas app of yours is the connector is still in preview and an API key will need to be generated. A blog from Rejeeve Pentyala on how to set up your Bing Portal account and generate the API key can be found HERE.
Thanks Rejeeve for the blog, you were a lifesaver during my hackathon.
Stay tuned to our channel for more videos in my power platform series! Click Here To View
If you want or need to increase your Power BI skills, Pragmatic Works On-Demand Learning platform is the perfect place to do it. Our 17 Power BI courses will turn you into a Power BI expert by providing in-depth instruction on all of the capabilities that Power BI provides. Click the link below to get started with a FREE trial!
ABOUT THE AUTHOR
Matt Peterson is a Trainer for Pragmatic Works specializing in the Power Platform. He graduated from the University of North Florida in 2006 and comes with 15 years of teaching experience in high school algebra. Matt earned the accomplishment in 2013 of being named the Florida Gifted Teacher of The Year. His primary focus is helping our customers learn the ins and outs of Power Apps and Power BI.
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.