Power BI: how to merge tables into a single report and export it

Power BI helps you to generate reports from data stored in Learn365. To retrieve data from Learn365, you'll need the Power BI Desktop and the API key for your tenant.

The example in this article shows how to generate a report on learners' attendance. The report will also show tables with learners' name, email address, and course information.

 

To merge all the relevant tables into a single report and download it, follow these steps:

1. In the Data view in Power BI Desktop, find the Attendances data field, as described in this article.

 

the_attendance_columns.png

 

2. In the Navigator page, select the tables you want to add to your report and Load them. In this example, we've selected the Users and Courses tables. For detailed instructions on how to open the Navigator page, see this article.

 

selectin_the_columns.png

 

3. In the left-side navigation, select the Report view icon, then select Transform data > Transform data.

 

the_report_view__2_.png

 

4. In the Queries panel on the left-hand side, select the Query1 table (the table you just uploaded that contains the Attendances columns) and select Merge Queries > Merge Queries.

 

selecting_the_quiery.png

 

5. On the opened Merge page:

  • In the Query1 section, select the CourseId table (the column named CourseId).
  • From the drop-down list, select Courses.
  • In the populated section below this drop-down list, select the Id column.
  • In the displayed Privacy levels window, select the checkbox to ignore the privacy levels and then Save.
  • On the Merge page, from the Join Kind drop-down list, select Full Outer (all rows from both).

6. Select OK.

 

courses_column.png

 

7. In the added Courses column, select the Expand icon and choose the columns you want to include. In this example, we've selected only the Title.

 

the_course_table.png

 

8. Select OK.

The Course.Title column will be displayed.

9. To merge the Users table, in the Queries panel on the left-hand side, select the Query1 table (the table you uploaded that contains the Attendances columns) and select Merge Queries > Merge Queries.

10. On the Merge page:

  • In the Query1 section, select the UserId table (the column named UserId).
  • From the drop-down list, select Users.
  • In the populated section below this drop-down list, select the Id column.
  • From the Join Kind drop-down list, select Full Outer (all rows from both).

11. Select OK.

 

The_users_merge.png

 

12. In the added Users column, select the Expand icon and choose the columns you want to include. In this example, we've selected Title and Email.

13. Select OK.

 

the_expanded_users_column.png

 

The Users.Title and Users.Email columns will be displayed.

14. Once the required tables have been added, select Сlose & Apply.

 

the_close_button.png

 

15. In the left-side navigation, select the Report view icon.

16. In the Visualizations section, select the Table icon.

17. In the Data section, expand Query1 and select the checkboxes of the data fields you want to add to your report. In this example, we've selected the Users.Title, Users.Email, Courses.Title, and Attendances.Percent data fields.

The order in which you select the data fields will determine the order in which they'll be displayed in the report.

18. To preview the report, expand the view by dragging the bottom right-hand corner of the report window.

 

drag_the_table.png

 

19. To export the report to your local device, select the More options icon (the horizontal ellipsis) > Export data.

 

exporting_data.png

 

20. Enter a filename, select the relevant file location, then Save. The file is saved in .csv format, which you can open in Excel. When opened in Excel, it'll look similar to the following image.

For more information about formatting your downloaded report in Excel, see this Microsoft documentation.

 

the_report__2_.png

 

Was this article helpful?
1 out of 3 found this helpful

Comments

Article is closed for comments.