- Article
- 6 minutes to read
Note
This article is part of a tutorial series on using Power Apps, Power Automate, and Power BI with SharePoint Online. Make sure you read the series introduction to get a sense of the big picture, as well as related downloads.
In this task, we'll create a Power BI report based on the two lists. We'll bring the list data into Power BI Desktop and clean it up a little, do some basic data modeling, and create a set of visuals that tell us something about the data.
Quick review of Power BI Desktop
Before we dive into report creation, let's review Power BI Desktop. This is a powerful tool, with a lot of features, so we will focus on an overview of the areas that you will use in this task. There are three main work areas or views in Power BI Desktop: Report view, Data view, and Relationships view. Power BI Desktop also includes Query Editor, which opens in a separate window.
The following screen shows the three view icons along the left of Power BI Desktop: Report, Data, and Relationships, from top to bottom. The yellow bar along the left indicates the current view; in this case, Report view is displayed. Change views by selecting any of those three icons.
The Report view has five main areas:
- The ribbon, which displays common tasks associated with reports and visualizations.
- The Report view, or canvas, where visualizations are created and arranged.
- The Pages tab area along the bottom, which lets you select or add a report page.
- The Visualizations pane, where you change visualizations, customize colors or axes, apply filters, drag fields, and more.
- The Fields pane, where query elements and filters can be dragged onto the Report view, or dragged to the Filters area of the Visualizations pane.
The Data view has three main areas:
- The ribbon, which has the Modeling tab selected below. On this tab, you create calculated tables and columns, and make other changes to the data model.
- The center pane, which shows data for the selected table.
- The Fields pane, where you control how fields are displayed in your reports.
We don't use the Relationships view in this task, but you can check it out later after we bring the list data into Power BI Desktop.
In Query Editor, you build queries and transform data, then load that refined data model into Power BI Desktop. Query Editor has four main areas:
- The ribbon, which has many options for shaping and transforming the data that you bring in.
- The left pane, where queries are listed and available for selection, viewing, and shaping.
- The center pane, where data from the selected query is displayed and available for shaping.
- The Query Settings window, which lists the query's properties and data transform steps that have been applied.
Step 1: Get data into Power BI Desktop
In this step, we'll first connect to the two lists. Then we'll clean up the data by removing columns we don't need for our data analysis. We'll also change the data types on some of the remaining columns so that calculations work properly. For more information on getting and cleaning data in Power BI Desktop, see the Getting Data section in our Guided Learning course.
Connect to lists
In Power BI Desktop, on the Home tab, click or tap Get Data, then More…
In the Get Data dialog box, click or tap SharePoint Online List, then Connect.
Enter the URL for your SharePoint site, then click or tap OK.
If you get the following dialog box, make sure you're signed in with the right credentials, then click or tap Connect.
Select Project Details and Project Requests, then click or tap Edit.
The lists are now displayed as tables in Query Editor.
Remove unnecessary columns from the tables
In the left navigation pane, click or tap Project Details.
In the middle pane, select the FileSystemObjectType column, then click or tap Remove Columns.
Remove the two columns after the Id column: ServerRedirectedEmbedURL and ContentTypeId.
Tip
Use the Shift key to select both columns, then click or tap Remove Columns.
(Video) Power BI Tiles & Reports in Power Apps | Inventory Management SolutionRemove all columns to the right of the PMAssigned column (a total of 22 columns). The table should match the following image:
Repeat the process you just went through, now for Project Requests: remove FileSystemObjectType, ServerRedirectedEmbedURL, ContentTypeId, and all columns to the right of the Approved column (a total of 22 columns). The table should match the following image:
Change the data type on Project Details columns
Select the ProjectedDays column, click or tap Data Type: Any, then Whole Number.
Repeat the previous step for the ActualDays column.
Select the ApprovedDate column, click or tap Data Type: Any, then Date.
Repeat the previous step for the ProjectedStartDate and ProjectedEndDate columns.
Change the data type on Project Requests columns
Select the EstimatedDays column, click or tap Data Type: Any, then Whole Number.
Select the RequestDate column, click or tap Data Type: Any, then Date.
Apply and save changes
On the Home tab, click Close and Apply to close Query Editor and go back to the main Power BI Desktop window.
Click or tap File, then Save, and save with the name project-analysis.pbix.
Step 2: Improve the data model
Now that we have the data from our lists pulled into Power BI Desktop, we'll move on to data modeling. Data modeling can be a time-consuming process, but we'll briefly show you some interesting things you can do to get more out of the list data in Power BI Desktop:
- Change how the two tables are related to each other
- Add a date table so we can make calculations based on weekdays
- Add calculated columns to calculate timespans between project milestones
- Add measures to calculate variance in projected versus actual days for a project
After these steps are complete, we can build visualizations that take advantage of the improvements to our model. For more information on modeling data in Power BI Desktop, see the Modeling section in our Guided Learning course.
Change table relationships
When Power BI Desktop brought the lists in, it created a relationship between them based on the Id column in both tables. The relationship should actually be between the Id column in the Project Requests table, and the RequestId column in the Project Details table. Let's fix that:
Click or tap the Data view icon.
On the Modeling tab, click or tap Manage Relationships. We'll stay on this tab in the Data view for all the data modeling steps.
Make sure the existing relationship is selected, click or tap Delete, then Delete again to confirm.
Click New to create a different relationship.
In the Create Relationship dialog box:
For the first table, select Project Requests, and the Id column.
For the second table, select Project Details, and the RequestId column.
The screen should look like the following image. When you're ready, click or tap OK, then Close.
Add a date table to make date-based calculations easier
Click or tap New Table.
(Video) POWERAPPS and POWER BI can do what?!? It's bananas!Enter this formula into the formula bar: Dates = CALENDARAUTO().
This formula creates a table called Dates with a single date column. The table covers all dates from your other table, and it updates automatically if additional dates are added (i.e. if data is refreshed).
This formula and the other ones in this section use Data Analysis Expressions (DAX), a formula language for Power BI and other technologies. For more information, see DAX basics in Power BI Desktop.
Press Enter to create the Dates table.
Add a calculated column to the Dates table
While still on the date table, click or tap New Column.
Enter this formula into the formula bar: IsWeekDay = SWITCH(WEEKDAY(Dates[Date]), 1,0,7,0,1).
This formula determines whether a date in the Date column is a weekday. If the date is a weekday, the IsWeekDay column gets a value of 1; otherwise it gets a value of 0.
Press Enter to add the IsWeekDay column to the Dates table.
Add a calculated column to the Project Details table
In the right pane, click or tap the Project Details table, then New Column.
Enter this formula into the formula bar:
ApprovedStartDiff = CALCULATE(SUM(Dates[IsWeekday]), DATESBETWEEN(Dates[Date], 'Project Details'[ApprovedDate], 'Project Details'[ProjectedStartDate] ))
This formula calculates the difference in days between when a project was approved and when it is projected to start. It uses the IsWeekday column from the Dates table, so it counts only weekdays.
Press Enter to add the ApprovedStartDiff column to the Project Details table.
Add a calculated column to the Project Requests table
In the right pane, click or tap the Project Requests table, then New Column.
Enter this formula into the formula bar:
RequestDateAge = CALCULATE(SUM(Dates[IsWeekday]), DATESBETWEEN(Dates[Date], 'Project Requests'[RequestDate], NOW() ))
This formula calculates the difference in days between when a project was requested and today's date (NOW()). Again, the formula counts only weekdays. This column is used to look for the project that has been pending the longest.
Press Enter to add the RequestDateAge column to the Project Requests table.
Add a measure to the Project Details table
In the right pane, click or tap the Project Details table, then New Measure.
Enter this formula into the formula bar:
VarProjectedActual = DIVIDE( SUM('Project Details'[ActualDays]) - SUM('Project Details'[ProjectedDays]), SUM('Project Details'[ProjectedDays]))
This formula calculates the variance between actual and projected days for a project. We add this as a measure, rather than a calculated column, so it returns the correct results regardless of how the data is filtered or aggregated in a report.
Press Enter to add the VarProjectedActual measure to the Project Details table.
Add a measure to the Project Requests table
In the right pane, click or tap the Project Requests table, then New Measure.
Enter this formula into the formula bar:
MaxDaysPending = MAXX( FILTER('Project Requests', 'Project Requests'[Approved]="Pending"), 'Project Requests'[RequestDateAge])
This formula finds the project that has been pending the longest, based on the calculated column we defined earlier.
(Video) How To Integrate A Power App Into Your Power BI ReportPress Enter to add the MaxDaysPending measure to the Project Requests table.
Step 3: Create report visualizations
Now we're at the step that many people think of when they think of data analysis: creating visualizations so we can find patterns in our data. In this step, we'll create four visualizations:
- A column chart that shows projected days versus actual days on projects
- A column chart that shows the variance for each project
- A card that shows the project that has been pending the longest
- A table that shows the time between project approval and projected start date
After we've created these report visualizations in Power BI Desktop, we'll publish the data and reports to the Power BI service, so we can create and share dashboards. For more information on creating reports in Power BI Desktop, see the Visualizations section in our Guided Learning course.
Create a bar chart to show projected versus actual
Click or tap the Report view icon. We'll stay in this view for the rest of our time in Power BI Desktop.
In the Visualizations pane on the right, click or tap Clustered column chart.
Drag PMAssigned and Title from Project Details in the Fields pane to Axis in the Visualizations pane.
Drag ActualDays and ProjectedDays from Project Details in the Fields pane to Value in the Visualizations pane.
The visualization should now look like the following image.
Drag Status from Project Details in the Fields pane to the Filters area of the Visualizations pane, then select the Completed check box.
The chart is now filtered to show only completed projects, which makes sense because we are comparing projected days to actual days.
Click the arrows in the upper left corner of the chart to move up and down the hierarchy of project managers and projects. In the following image, you see what the drill down into projects looks like.
Create a bar chart to show variance from projected
Click or tap on the canvas outside the visualization you just created.
In the Visualizations pane on the right, click or tap Clustered column chart.
Drag PMAssigned and Title from Project Details in the Fields pane to Axis in the Visualizations pane.
Drag VarProjectedActual from Project Details in the Fields pane to Value in the Visualizations pane.
Drag Status from Project Details in the Fields pane to the Filters area of the Visualizations pane, then select the Completed check box.
The visualization should now look like the following image.
You can see from this chart how much more variability there is for projects that were run by Irvin Sayers versus Joni Sherman. Drill in to see the variability by project, and whether the days projected was more or less than the actual days.
Before we create more visualizations, move and resize the ones you already created, so they fit side-by-side.
(Video) Manage and Embed Power BI Reports and Datasets as Part of a Power Platform Solution
Create a card that shows the longest pending project
Click or tap on the canvas outside the visualization you just created.
In the Visualizations pane on the right, click or tap Card.
Drag MaxDaysPending from Project Requests in the Fields pane to Fields in the Visualizations pane.
Click or tap Format (paint roller), then set Border to On.
Set Title to On, then add the title "Max days pending approval".
The visualization should now look like the following image.
After we publish this report, we'll use this tile to trigger an alert if the maximum value for a pending project reaches a certain threshold.
Create a table that shows the time between project approval and projected start date
Click or tap on the canvas outside the visualization you just created.
In the Visualizations pane on the right, click or tap Table.
Drag PMAssigned, Title, and ApprovedStartDiff from Project Details in the Fields pane to Values in the Visualizations pane.
Drag ProjectedStartDate from Project Details in the Fields pane to the Filters area of the Visualizations pane, then select all dates except for (Blank).
Resize the columns of the table so you can see all the data, and sort by ApprovedStartDiff, descending. The visualization should now look like the following image.
In the Values area, click or tap the down arrow for ApprovedStartDiff, then click or tap Average. Now we can see the average duration between project approval and projected start date.
Click or tap the down arrow for ApprovedStartDiff again, click or tap Conditional formatting, then click or tap Background color scales.
Set colors for the Minimum and Maximum fields as shown below, then click or tap OK.
The visualization should now look like the following image.
As you can see, projects that Irvin Sayers runs tend to start a lot later after approval. There could be factors other than the assigned manager, but this would be worth looking into.
That brings us to the end of the report section, and you should now have a complete report based on data imported from SharePoint and cleaned up and modeled in Power BI Desktop. If everything went according to plan, your report should look like the following image.
Next steps
The next step in this tutorial series is to publish the Power BI project report and create a dashboard.
See also
- SharePoint integration scenarios
FAQs
How do I create a report in Power BI app? ›
- Step 1: Install Power BI Desktop for Power BI Report Server. ...
- Step 2: Select a data source. ...
- Step 3: Design your report. ...
- Step 4: Save your report to the report server.
The parts of Power BI
Power BI consists of several elements that all work together, starting with these three basics: A Windows desktop application called Power BI Desktop. An online software as a service (SaaS) service called the Power BI service. Power BI Mobile apps for Windows, iOS, and Android devices.
Power Apps apps can include reports that provide useful business information to the user. These reports are based on SQL Server Reporting Services and provide the same set of features that are available for typical SQL Server Reporting Services reports. System reports are available to all users.
How do I create an analytics report? ›- Sign in to Google Analytics.
- Navigate to your view.
- Open Reports.
- Click Customization > Custom Reports > +New Custom Report.
- Enter a Title.
- (Optional) Click +add report tab. ...
- Select a report type: Explorer, Flat Table, Map Overlay, or Funnel. ...
- Define your dimension and metrics.
...
4 Types of Report Analyses
- Market Analysis. ...
- Financial Analysis. ...
- Operational Analysis. ...
- Trend Analysis.
Get The Right Data
The first point to making your reports more interesting is to actually focus on the information you need. Think about what you actually need to report on, and get really granular on those aspects if you need to, but don't just report on anything and everything because you think it's the done thing.
- Limited Customization. Unlike open-source software, Power Apps is the proprietary platform owned by the tech giant Microsoft, which simply means, it is not possible to customize the application endlessly. ...
- Not Compatible With External Systems. ...
- Runs Only on PowerApps App Player.
Another PowerApps benefit is that various reviews show that PowerApps is not easy to use for everybody but is extremely easy to learn.
Can Power Apps replace Excel? ›The Powerapp forms is a substitute for the excel form that you have built.
What are the 5 steps of data analysis? ›- Step One: Ask The Right Questions. So you're ready to get started. ...
- Step Two: Data Collection. This brings us to the next step: data collection. ...
- Step Three: Data Cleaning. You've collected and combined data from multiple sources. ...
- Step Four: Analyzing The Data. ...
- Step Five: Interpreting The Results.
What are the 7 steps of data analysis? ›
- Defining the question.
- Collecting the data.
- Cleaning the data.
- Analyzing the data.
- Sharing your results.
- Embracing failure.
- Summary.
The essential elements (introduction, body, conclusion, and reference list) are shown in red and bold in the table on the next page. The other elements are optional.
Which is best tool for data analysis? ›- Microsoft Power BI: Best for Data Visualization.
- Tableau: Best for Business Intelligence.
- Qlik Sense: Best for Machine Learning.
- Looker: Best for Data Exploration.
- Klipfolio: Best for Instant Metrics.
- Zoho Analytics: Best for Robust Insights.
- Domo: Best for Streamlining Workflows.
These steps and many others fall into three stages of the data analysis process: evaluate, clean, and summarize.
What are the four 4 types of analysis? ›- Descriptive Analysis.
- Diagnostic Analysis.
- Predictive Analysis.
- Prescriptive Analysis.
Explanation: A report must never be based on personal prejudices and misplaced learning. It must be objective. It highlights the significance of the facts.
What are the some of the common mistakes in reporting? ›- You Don't Clean Your Data. ...
- You Do Too Much at a Time. ...
- You Don't Create Backups. ...
- You Forget About Data Visualization. ...
- You Don't Ask for Help.
- The Dos.
- Make it relevant. You have to make reporting relevant to the stakeholder, there's no point sending a report on the general office expenses to the HR department. ...
- Keep it concise. ...
- Use correct language. ...
- Keep it timely. ...
- The Don'ts.
- Don't have spelling errors. ...
- Don't miss deadlines.
- Read other reports. To enhance your report writing skills, try to read other published reports. ...
- Create an outline. You can improve your planning skills by creating outlines for each report. ...
- Verify your sources. ...
- Write multiple drafts. ...
- Ask for feedback.
- Title page. ...
- Abstract (or Executive Summary in business reports) ...
- Table of contents. ...
- Introduction. ...
- Methodology. ...
- Discussion. ...
- Conclusion/recommendations. ...
- Appendices.
How do I make my report look pretty? ›
Consider Using Visuals To Enhance Appeal and Reinforce the Content. Photos, illustrations, or other design elements can add warmth and visual interest to your report. Choose visuals that are clear, uncluttered, and culturally appropriate for your intended audience.
How do you make data visually appealing? ›- Make sure your data is compelling and strong enough to support a visualization.
- Make sure your data is right for the story.
- Don't overcomplicate the design for the sake of it.
- Use the right graph style for your data (and audience).
- Focus on the point.
- Use color effectively within limitation.
- 1) Choose the chart that tells the story. ...
- 2) Remove anything that doesn't support the story. ...
- 3) Design for comprehension. ...
- 4) Include a zero baseline if possible. ...
- 5) Always choose the most efficient visualization. ...
- 6) Watch your placement. ...
- 7) Tell the whole story.
- 1 Choose a topic based on the assignment. ...
- 2 Conduct research. ...
- 3 Write a thesis statement. ...
- 4 Prepare an outline. ...
- 5 Write a rough draft. ...
- 6 Revise and edit your report. ...
- 7 Proofread and check for mistakes.
Introduction: Introduce your report topic and what readers will find throughout the pages. Body: The longest section of your report — compile all of your information and use data visualization to help present it. Conclusion: Different from the summary, this concludes the report body and summarizes all of your findings.
What makes a good report? ›An effective report presents and analyses facts and evidence that are relevant to the specific problem or issue of the report brief. All sources used should be acknowledged and referenced throughout, in accordance with the preferred method of your department. For further information see: Avoiding Plagiarism.
What three things are necessary to have successful data visualization? ›- It understands the audience. ...
- It sets up a clear framework. ...
- It tells a story.
Data Visualization Guide
Form follows function. Focus on how your audience needs to use the data, and let that determine the presentation style. Provide the necessary context for data to be interpreted and acted upon appropriately. Keep it simple.
- Microsoft Power BI: Best for Business Intelligence.
- Tableau: Best for Interactive Charts.
- Qlik Sense: Best for Artificial Intelligence.
- Klipfolio: Best for Custom Dashboards.
- Looker: Best for Visualization Options.
- Zoho Analytics: Best for Zoho Users.
- Domo: Best for Custom Apps.
- Step 1: Remove duplicate or irrelevant observations. Remove unwanted observations from your dataset, including duplicate observations or irrelevant observations. ...
- Step 2: Fix structural errors. ...
- Step 3: Filter unwanted outliers. ...
- Step 4: Handle missing data. ...
- Step 5: Validate and QA.
What is the best data visualization design? ›
The best data visualization tools include Google Charts, Tableau, Grafana, Chartist. js, FusionCharts, Datawrapper, Infogram, ChartBlocks, and D3. js. The best tools offer a variety of visualization styles, are easy to use, and can handle large data sets.
What is the salary of a data visualization analyst? ›Data Visualization Analyst salary in India ranges between ₹ 2.6 Lakhs to ₹ 17.0 Lakhs with an average annual salary of ₹ 6.0 Lakhs. Salary estimates are based on 65 latest salaries received from Data Visualization Analysts.
What are the two possible factors that will make a visualization successful? ›- Show connections within the data that are too complex to explain with words.
- Make it easier for the audience to quickly understand the information presented and consider the outcomes from that data.
Some of the key aspects of effective data visualization include determining the best visual, balancing the design, focusing on key areas, keeping the visuals simple, using patterns, comparing parameters, and creating interactivity.