Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Syndicate_Admin

From Forms to PowerBI and the glue is Microsoft Flow

Intro

In the coming days I have a meeting with technical people about PowerShell and would like to start with a survey to get an idea of the knowledge about PowerShell of the people in the room. Putting hands in the air is old school … No?

 

How-To? Creating a Microsoft Forms – Survey about Microsoft PowerShell (as an example)

So, let’s start to create a Forms in Office 365. It’s easy to create one.

More information about Microsoft Forms, can be found here:
https://support.office.com/en-us/forms?omkt=en-001

flow03-01.png

Now we will create a Flow that will be triggered when a Forms response has been submitted. The Flow will collect the information and will display the results live in Power BI.

How do we do this?

Step by Step, I will carefully explain what you need to do, so that you can build your own and blow away your boss. First we will open a blank MS Flow and add a trigger for Microsoft Forms. Search for Microsoft Forms and click icon as shown below in picture.

flow03-02.png

Select the trigger [When a new respond is submitted]

flow03-03.png

Select the Forms that you have just created, in this example we us the “Microsoft PowerShell”- Forms.

flow03-04.png

We can also rename the trigger to a more suitable name, using the three dots.

flow03-05

Select and click [Rename]

flow03-06.png

Add your next step in the Flow.

flow03-07.png 

Search for [Apply to each], this means that when multiple response are send at the same time we can collect the information of these responses.

flow03-08.png 

Select [Apply to each]

flow03-12.png

Dynamic content will be pop-up after selecting Apply to each, this will refer to previous steps into your MS Flow. In this example the dynamic content will reflect towards the “PowerShell Survey”. Select the option [List of response notifications]

 

In the next step we need to collect the information from the list. Click [Add an action]

flow03-10.png

Search for an action for Microsoft Forms

 flow03-11.png 

We need the details of the responses, so select [Get response details]

flow03-12.png 

Select for the following fields:

  • Form Id: The id of the Form (Example: Microsoft PowerShell)
  • Response Id: Get the Response Id in the dynamic content list of the PowerShell Survey.

flow03-13.png

Next step we will put the data in a data set of Power BI. Click [Add an action]. Search for data set and select [Add rows to a dataset]

flow03-14.png

But first before we continue we need to create a streaming data set in Power BI.

flow03-15.png

Click [Skip]

flow03-16.png 

Select [Streaming dataset]

flow03-17.png 

Select [API] and click [Next]. Give a name to the new data set and enter the questions from the PowerShell Survey.

flow03-18.png 

Click [Create]

flow03-19.png

Click [Done]. Check the data set in data sets

flow03-20.png 

Now we can proceed with the Flow and add the new created data set. Select the work space where the data set has been created and select the data set name. Select [RealTimeData] for the table.

flow03-22.png 

In the next step we will send a survey reply to the person, that has filled in the survey. Click [Add an action]
flow03-23.png Save the Flow.
When we go back to Power BI, that will display the necessary results.
flow03-24.png
This can be done by creating a report based on the created data set in Power BI.

flow03-25.png

Hope you enjoying creating Forms and Power BI reports.

Comments
Anonymous

Hello,

 

Thanks for the great article. I have a question related to streaming dataset.

 

I read on another website that data is not saved for more than a few hours meaning I can't save the feedbacks on MS Forms for longer?

 

Also, I can't modify the streaming data set for example I need to change the format of the time zone. This is only possible in MS Flow. Is there any way to link streaming Dataset to just normal data set? 

 

Thanks so much

Ahmed

 

 

@frederikbisback 

Hi,

 

I'm trying to follow this, i hope its still valid.

 

One step where you "Get Data" and you say to "skip" the skip but does not exist on my screen. Can you advise?

@frederikbisback 

Hi @frederikbisback,

 

How to get historical data of the ms-form?

 

Hi, when i call my data stream, within Flows i get 'payload' as an entry box, not the list of the questions I have asked from the form...please can you advise?

 

@mcguija 
Instead of clicking 'Get data' in the bottom left corner, go to your target workspace and click 'Create. This will call the dropdown where you have the option to select a Streaming dataset.

 

@mohittimpus 

Once your streaming dataset is created, view your list of datasets and click to edit the streaming dataset you have created. If you scroll to the bottom of the window, there is an option to turn on Historic Data Analysis which I believe pulls through Forms responses prior to the Power BI link you are creating. Your dataset then becomes a Hybrid dataset.

 

@Lina_Chhina 

I saw the same the first time I tried to follow the instructions. I loaded all of my dynamic content labels into the field and proceeded as per the instructions. At first run, my flow failed, when I went to edit my flow, the fields were then visible and I reorganised as per the instructions above.
NOTE: The next time I came to follow this process, I saw the payload field momentarily, but before I could do anything it was replaced with my designated fields. Don't know what the difference was this time.

 

 

Please give Kudos if useful. 

 

Hello! I have an Office 365 account with a SharePoint portal. When I try to create a data flow, my Forms are not populating the Form ID field. I can't seem to get it to find the documents I'm trying to access.

 

 

Help!

 

Action[Apply to each] - required answer, No list appear or dropdown choices. What will be the choices here.

 

This is absolutely brilliant. However, I have followed it step by step and I keep getting the following error:

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array.

 

I cant for the life of me work out how to change this?

Anonymous

Have the same problem as @Simmo86!

 

Anyone an idea how to fix it?