Collecting Statistics
The Collect Statistics Task for Power BI conducts an assessment of all Power BI content types in the source tenant. It provides summarized and detailed premigration information about workspace types, gateways, semantic models, connections, reports and users.
In this topic:
Prerequisite
The Discover All Contents task must be run once before collecting statistics.
Starting a Collect Statistics Task
- Log in to Quest On Demand and choose an organization if you have multiple organizations.
- From the navigation pane, click Migration to open the My Projects list.
- Create a new project or open an existing project.
- Click the Power BI tile, or click Open from the Power BI tile to open the Power BI workspace.
- Select the Dashboard tab. Click Collect Statistics from the Actions menu. The New Collect Statistics Task wizard opens.
- Step 1:Schedule
- Choose from one of three options to schedule the task. The scheduler will be activated only after you complete the task wizard.
- Run now - task runs immediately.
- Run later - task must be started manually.
- Schedule - task will be started at a future date and time entered in the corresponding calendar field.
- Click Next.
- Step 2: Summary
- Verify the task specifications as described below:
- Name - name of the task. You can specify a custom name. Default name is Collect Statistics Task.
- Scheduled start - date and time when the task will start. Now indicates that the task will start immediately.
- Click Back to revise or review a previous step or click Finish to complete the task wizard and start the task as scheduled.
Reviewing the Collect Statistics Task
- Open the Tasks tab.
- Select the Collect Statistics task that you want to review.
- In the task details pane that opens, the information presented is as described below:
- Task Status - Indicates whether the task is completed.
- Type - Type of the task. The type is CollectStatistics.
- Created - Date and time when the task was created.
- Modified - Date and time when the task was last updated.
- Status - State of the task.
- Last Operation - The action that was most recently performed in this task.
- Schedule - Date and time when the task started. Now indicates that the task started immediately after the task was created.
- Events (number) - The number of events that the task encountered.
- From the task details pane, click Download Premigration Report. Download and save the ZIP file to a suitable folder, and extract the report.
![](/es-es/technical-documents/image/0497f0f2-874d-4c18-bde5-0b95db2454c7)
Reviewing the events for the Collect Statistics Task
- Open the Tasks tab.
- Select the Collect Statistics task that you want to review.
- In the task details pane that opens, click Events (number). The Events tab opens with a filtered list of events for the selected task.
- Select an event that you want to review. In the task details pane that opens, the information presented is as described below:
- Object - name of the Power BI object if applicable.
- Task - name of the task.
- Time - date and time when the event occurred.
Managing Power BI objects with Collections
Migrating large numbers of Power BI objects requires careful planing. Organize the Power BI objects into collections to make large lists more manageable. Collections can be created for Workspaces, Gateways, Connections and Connection Profiles. The process described below is common to all Power BI objects.
Working with the Collections Dashboard
The Collections Dashboard shows the collection-specific summary, allows you to see Power BI objects added to it, create tasks for them, and monitor the progress of tasks.
- To add Power BI objects to a collection see Adding Power BI objects to Collections.
- To view the collection dashboard for an existing collection
- From the project dashboard, click Open in the Power BI tile to open the Power BI migration workspace.
- From the top-right corner of the workspace, click Select Collection and then select the collection to view. The collection Dashboard is displayed.
- Open the Power BI tab. You will see the list of Power BI objects that belong to the collection.
- To see the tasks related to a collection, select the collection. Then open the Tasks tab from the collections dashboard.
- To see the events related to a collection, select the collection. Then open the Events tab from the collections dashboard.
- To remove Power BI objects from a collection, see Removing Power BI objects from Collections.
- To rename a collection, select the collection. Then click Rename Collection in the Actions toolbar of the collections dashboard.
- To delete a collection, select the collection. Then click More > Delete Collection in the Actions toolbar of the collections dashboard.
- To return to the BI migration workspace, click the collection dropdown at the top-right corner of the page, and select Show All.
Adding Power BI objects to Collections
You can add Power BI objects to collections in several ways:
To add selected Power BI objects to a new collection:
- From the project dashboard, click Open in the Power BI tile to open the Power BI migration workspace.
- Click a Power BI object tab and select the Power BI objects you want to add to the collection.
- From the Actions toolbar, click New Collection. The New Collection dialog opens.
- Enter a collection name in the Collection name field and click Save to add the selected Power BI objects to the collection.
![](/es-es/technical-documents/image/aa6c9e8a-ae33-4ed7-acfa-8809fe74069d)
To add selected Power BI objects to an existing collection:
- From the project dashboard, click Open in the Power BI tile to open the Power BI migration workspace.
- Click a Power BI object tab and select the Power BI objects you want to add to an existing collection.
- From the actions toolbar, click Add To Collection. The Add to existing collection dialog opens.
- Select a collection from the Collection name dropdown and click Save to add the selected Power BI objects to the collection.
![](/es-es/technical-documents/image/f8d3bcc6-16a0-4b57-b509-b2af80a7b1cb)
To add Power BI objects from a CSV file to a new or existing collection:
This is a two-step process as described below to add Power BI objects to an existing collection from a Power BI object tab:
Step 1: Prepare the CSV file
|
NOTE: CSV file names with non-ASCII characters are not supported. Power BI objects in the CSV that have not been discovered cannot be added to a collection. |
Use the format shown below to prepare the CSV file. The minimal set of columns are described below.
- ObjectName - specify the name of the Power BI object. If you provide this value, specifying the ObjectId is optional.
![](/es-es/technical-documents/image/e20a1fe2-f342-4891-b4a7-b7f5bf2faf41)
|
NOTE: If there are rows with the same ObjectName, only the last row will be added to the collection. |
- ObjectId - provide the GUID (Globally Unique Identifier) of the Power BI object. If you include this value, then ObjectName is optional.
![](/es-es/technical-documents/image/e20a1fe2-f342-4891-b4a7-b7f5bf2faf41)
|
NOTE: Use the Premigration report to get the Object Ids.
Alternatively, the Object Id GUID can be obtained from the Power BI service application https://app.powerbi.com, or by using the Power BI REST API https://learn.microsoft.com/en-us/rest/api/power-bi. Try Get Groups for Workspaces, Get Gateways for Gateways and Get Datasources for Connections. For workspace ObjectId open the workspace and copy the GUID from the URL. |
- ObjectType - enter the type of the Power BI object. The options are Workspace, Gateway, Connection, or Userprofiles. This field is required.
- CollectionName - provide the name of the collection. This field is required. If a collection name specified in the CSV file does not exist, a new collection will be created with the specified name .
Step 2: Import the CSV file
- Click the Power BI tile, or click Open from the Power BI tile to open the Power BI workspace.
- Open a Power Bi object tab.
- From the actions toolbar, click More > Import Collections. The New Import Collections From File Task dialog opens.
![](/es-es/technical-documents/image/48f379b2-604a-4cd7-b7e3-5a6a375d7768)
- Step 1: Mapping File
- Click Browse and select the CSV file. The selected CSV file name appears.
- Step 2: Schedule
- Choose from one of three options to schedule the task. The scheduler will be activated after you complete the task wizard.
- Run now - task runs immediately.
- Run later - task must be started manually.
- Schedule - task will be started at a future date and time entered in the corresponding calendar field.
- Click Next.
- Step 3: Summary
- Verify the task specifications as described below:
- Name - name of the task. The default name is Import Collections From File. You can specify a custom name.
- Scheduled start - date and time when the task will start. Now indicates that the task will start immediately.
- Click Back to revise or review a previous step or click Finish to complete the task wizard and start the task as scheduled.
- Click Finish.
Removing Power BI objects from Collections
- From the project dashboard, click Open in the Power BI tile to open the Power BI migration workspace.
- From the top-right corner of the migration workspace, click Select Collection. Then select a collection to open the collections dashboard.
- Select an object tab. Then from the list view, select the objects that you want to remove from the collection.
- From the actions toolbar, click Remove from Collection.
- In the confirmation dialog click Remove to remove the selected Power BI objects from the collection.
- To return to the BI migration workspace, click the collection dropdown at the top-right corner of the page, and select Show All.
Creating and Assigning Connection Profiles
A connection profile is a named set of credentials that is assigned to discovered Connections before they can be migrated. These credentials are required by Microsoft Power BI to read the source data and create the Connection in the target tenant.
|
NOTE: Creating a Connection Profile require credentials that are securely stored in the On Demand Migration repository. It is recommended to create a profile when Connections are expected to be migrated. When you complete the Connection migration, you may delete the Connection Profile to remove the credentials from the On Demand Migration repository.
See the On Demand Migration - PowerBI security guide for more information about how On Demand Migration secures sensitive information. |
To create profiles
- Log in to Quest On Demand and choose an organization if you have set up multiple organizations.
- From the navigation pane, click Migration to open the My Projects list.
- Create a new project or open an existing project.
- From the Power BI tile on the project dashboard click Open. Then select the Connection Profiles tab.
- Click Create in the List View menu. The Create New Connection Profile Task wizard starts.
- Step 1: Connection Profile
- Specify the information for the fields described below:
- User name - unique identifier associated with an individual user permitted to access the connection in the format domain\user.
- Password - password to verify the identity of the user.
- Profile name - name of the connection profile. If you use the name of an existing profile, you can modify the profile by selecting the Overwrite existing option.
- Overwrite existing - select this option to alter a profile with the same name if it exists.
- Click Next.
- Step 2: Schedule
- Choose from one of three options to schedule the task. The scheduler will be activated after you complete the task wizard.
- Run now - task runs immediately.
- Run later - task must be started manually.
- Schedule - task will be started at a future date and time entered in the corresponding calendar field.
- Click Next.
- Step 3: Summary
- Verify the task specifications as described below:
- Name - name of the task. The default name is New Connection Profile. You can specify a custom name.
- User name - unique identifier of a user permitted to access the connection.
- Profile name - name of the connection profile.
- Overwrite existing - indicates whether or not a preexisting profile must be modified if it exists.
- Scheduled start - date and time when the task will start. Now indicates that the task will start immediately.
- Click Back to revise or review a previous step or click Finish to complete the task wizard and start the task as scheduled.
To assign profiles
- From the Power BI workspace select the Connections tab.
- Select one or more Connections. You can select a Connection that is already assigned if you want to change the profile assigned to the Connection, or you can select an unassigned Connection.
- Click Assign Connection Profile in the List View menu. The New Connection Profile Task wizard starts.
- Step 1: Connection Profile
- Assign an existing connection profile - select this option to assign an existing connection profile.
- Select a connection profile - click the dropdown and select a connection profile.
- Assign a new connection profile - select this option to create and assign a new connection profile. Specify the information for the fields described below:
- User name - unique identifier associated with an individual user permitted to access the connection in the format domain\user.
- Password - password to verify the identity of the user.
- Profile name - name of the connection profile. If you use the name of an existing profile, you can modify the profile by selecting the Overwrite existing option.
- Overwrite existing - select this option to alter a profile with the same name if it exists.
- Click Next.
- Step 2: Schedule
- Choose from one of three options to schedule the task. The scheduler will be activated after you complete the task wizard.
- Run now - task runs immediately.
- Run later - task must be started manually.
- Schedule - task will be started at a future date and time entered in the corresponding calendar field.
- Click Next.
- Step 3: Summary
- Verify the task specifications as described below:
- Name - name of the task. The default name is Assign Connection Profile. You can specify a custom name.
- User name - unique identifier of a user permitted to access the connection.
- Profile name - name of the connection profile.
- Overwrite existing - indicates whether or not a preexisting profile must be modified if it exists.
- Scheduled start - date and time when the task will start. Now indicates that the task will start immediately.
- Click Back to revise or review a previous step or click Finish to complete the task wizard and start the task as scheduled.
- When the task completes, the selected Connections will be assigned to a named profile. The Assigned Connection Profile column value in the List View will be set to the profile name.
Mapping Workspaces
Use this method to map specific Power BI Workspaces from the source to a Power BI Workspace that may or may not exist in the target tenant. If the Workspace exists in the target tenant, it will be merged with the target Workspace and the source data is used to resolve any merge conflicts. If the target Workspace does not exist, a new Workspace will be created.
The CSV file lets you specify the Workspaces that you want to map and ignore the rest. You can then use this file in the New Mapping from File Task wizard to map the Power BI Workspaces from the source to the target tenant.
This is a two-step process as described below:
To create the mapping file:
- Prepare a comma-separated values (CSV) file with the source and target Workspace names.
-
|
NOTE:
- You can download a CSV template when you start the New Mapping from File Task wizard and click Download Example File from the Mapping File step.
- CSV file names with non-ASCII characters are not supported.
|
- The header row defines the names of the source and target attributes used for mapping. Subsequent rows list the mapping values of the attributes.
The columns are as follows:
- Source Workspace Name - unique name of the source Power BI Workspace. The column header is case sensitive.
- Target Workspace Name - unique name of the Power BI Workspace. The column header is case sensitive. In cases where a mapping is not applied and the Target Workspace does not have a value, the Name of the source Workspace will be used for the migration to the target tenant.
- Save the CSV file. You may rename the file if needed.
To upload the mapping file:
- Log in to Quest On Demand and choose an organization if you have set up multiple organizations.
- From the navigation pane, click Migration to open the My Projects list.
- Create a new project or open an existing project.
- From the Power BI tile on the project dashboard click Open. Then select the Workspaces tab.
- From the Actions menu, click More and then select Map from File. The New Mapping from File Task wizard starts.
- Step 1: Mapping File
- Click Browse and select the CSV mapping file. The selected file name appears next to the Browse button.
- Click Next.
- Step 2: Schedule
- Choose from one of three options to schedule the task. The scheduler will be activated after you complete the task wizard.
- Run now - task runs immediately.
- Run later - task must be started manually.
- Schedule - task will be started at a future date and time entered in the corresponding calendar field.
- Click Next.
- Step 2: Summary
- Verify the task specifications as described below:
- Name - name of the task. The default name is Map Workspaces From File. You can specify a custom name.
- Scheduled start - date and time when the task will start. Now indicates that the task will start immediately.
- Click Back to revise or review a previous step or click Finish to complete the task wizard and start the task as scheduled.
- When the task completes, the Target Workspace column in the Workspaces list indicates the mapped Workspace in the target tenant.