Siirry pääsisältöön

Get Forms results directly to Power BI

Old fashioned form analyzing requires extra protection.


Forms is a handy tool to collect user input for various purposes. You can check the results directly from Forms service online, but for more in depth analytics the results can be downloaded in an Excel file.

That means that the results can be interpreted and refined in Power BI with ease. So, let's get on to it.

Create a form with Forms

If you haven't had the chance to create forms with Forms before, there's no need to be afraid. It's really straight forward, so I won't go through the process here. Really, there's nothing to it. There's plenty of tutorials out there. For example check out Kevin's excellent video on the subject: How to use Microsoft Forms

Get form id

The part we are interested in your newly created questionnaire is the form id. Open you form if it isn't open already in editor or in preview. Check the URL from the browser and look for part starting with FormId=

Starting after the equals sign to the end of the URL is your form id. As the name suggests, it identifies your form and thus is a really long and obscure. Copy it somewhere, eg. Notepad.

Enter test data

For maximum effort enter some dummy data into the form, like 10 or so different answers so there's something to look at in the next steps.

Get data to Power BI

In PBI Desktop use Get Data >> Web. Paste this url:

https://forms.office.com/formapi/DownloadExcelFile.ashx?formid=YOURFORMID&timezoneOffset=YOURTIMEZONEOFFSETINMINUTES&minResponseId=1&maxResponseId=1000

Replace YOURFORMID with your forms real Id, and find out your timezone offset in minutes. I used this: https://www.tutorialspoint.com/javascript/date_gettimezoneoffset.htm. Daylight savings causes the offset not to be constant, so beware, if it is crucial. The final URL is really just a link to download your form results in an Excel file. If you paste it into a browser (and you are signed in to O365) it will download the file.

Now, after the URL is complete, connect and sign in with your Office credentials, organizational account or whatever works. After a successful login you should be presented with this view:

Select the Excel Workbook.


From the row 2 click on Table. There you go, the results of your form. Check the data types, make your M magic, Close & Apply and go on with the visualizations and DAX and what not.

Instant results fresh from the source

Just hit the refresh button in PBI and you are presented with the up to date results straight from the Forms form. The future is now, old man.
Dude checking out some fine results. Damn those pie charts are fancy.  



For your homework I'll leave a simple task:

Create a function that accepts form id and outputs the form.

Kommentit

Tämän blogin suosituimmat tekstit

Is your business too small for Power BI? (TLDR; No!)

The company can use these information to determine which products do and do not sell well, and adjust pricing and promotions as necessary. The data can also be used to pinpoint areas where operational efficiency can be increased, for as by lowering inventory or optimizing staffing levels. This small firm may make better informed decisions that foster development and profitability by utilizing Power BI for financial reporting. Maybe I should have used other chart styles too. Improved decision-making: With the aid of Power BI reports, you can quickly evaluate your data to find trends and patterns that would be challenging to spot in other ways. This enables you to make better business decisions and respond appropriately. When determining which products are selling the best, for instance, you can use Power BI to analyze your sales data and change your inventory accordingly. Improved collaboration: Your team can easily communicate and share information with one another thanks to Power BI ...

Understanding Power BI Context: What You Need to Know

It's crucial to comprehend the concept of context in order to use Power BI efficiently. In this article, I'll examine what context in Power BI is and how it can be utilized to produce reports that are more useful. What Are the Power BI Contexts? Row context and filter context are the two different types of context available in Power BI. These contexts specify how a report's data is filtered and computed. What Distinguishes Row Context from Filter Context? Whereas row context applies filters to specific data rows, filter context applies filters to the entire report. In other words, row context filters the data after it has been calculated, whereas filter context filters the data before it. What Does Power BI's Context Filter Mean? A filter type known as a context filter modifies the report's filter context. As a result, you can filter report data without altering the underlying data. You could add a context filter to a report that displays sales by region to only dis...