Transform and map data in process advisor (preview)
[This topic is pre-release documentation and is subject to change.]
After you select the data source you want to use, you're taken to the Power Query Editor. The Query Editor is a powerful tool to transform your data. To learn more, go to The Power Query user interface.
Important
This is a preview feature.
Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
Here are some reasons why you might want to transform the data:
You might not be interested in all the activity names that are logged, and so you want to filter for specific activity names that are important to the process you're trying to mine.
You might want to rename some of the activity names to be more descriptive and understandable. This is often not the case with names in a database.
You might be interested in only the most recent year's history, and not the entire history.
Note
For public preview, we only support up to 150,000 rows of data. Because of this, filtering to a specific period may be necessary.
You might want to combine multiple ID columns to form the case ID. This is often done when the ID you want to use for process mining doesn't exist or is a combination of multiple IDs in the application. For example, when a customer files support tickets, the support ticket might be assigned to multiple customer service agents. If you want to analyze how each agent handles each ticket, you would combine the agent ID and the ticket ID into the case ID.
Filter activity names
Select the caret next to the activity name column to bring up the sort and filter menu.
If there's a message that says List may be incomplete, select Load more.
Select only the activity names that you want to analyze. Uncheck any name you want to exclude.

Alternatively, you can use the Text filter menu for more advanced filtering. For more information on filtering by value, go to Filter by values in a column.
Rename activities
Ensure that the Activity Name column is selected.
Above the toolbar, select the Transform tab.
On the toolbar, select Replace values.

Under Values to find, type the activity name as it appears in the data source that you want to replace.
Under Replace with, type the activity name you want to show in the process map.
Repeat this process for all the values you want to replace.
Reduce the number of total records
One strategy for reducing the total number of records is to use only the latest records. To do this, you need to first sort the data by time.
Open the sort and filter menu by selecting the caret next to the startTimestamp column.

To have the most recent records show up first, select Sort descending.
Select OK, and then select Keep rows on the toolbar.

Enter 150000 under Number of rows.
Select OK to filter for the top 150,000 rows.
Combine multiple IDs
You can use Ctrl + click to select multiple columns that you want to combine.
On the Transform tab toolbar, select Merge columns.

(Optional) Select a separator from the dropdown list. Alternatively, you can select none.
Change the name (or make a note of the default name that's generated), so you can select it when mapping to a case ID.
Map data
Mapping tells process advisor what columns represent case ID, activity name, or timestamp.
In the toolbar, select Map to entity.

In the left column, if your data only has one timestamp, select the Event log entity. If your data has both a start and an end timestamp, select the Activity log entity.

Select each of the dropdown lists under the Query output column heading, and select the corresponding column in your data that maps to:
- Activity name (activityName)
- Case ID (caseId)
- Start timestamp (startTimestamp)
- End timestamp (endTimestamp) only if you select Activity log in step 2.
After everything is mapped, select OK to close the map to entity screen.
Select additional columns
When performing process mining, having additional information about a process is especially useful. If your data contains only five or fewer columns outside of the required columns that you've mapped in the previous procedure, nothing else needs to be done. You can select Save and all the columns will be analyzed. You'll also be able to filter on these columns in the Analytics page.
If you have more than five columns:
Select Choose columns in the toolbar.

Deselect any column you don't want to include in the analysis.

Ensure that the mapped columns (activityName, caseId, startTimestamp, endTimestamp) from the previous procedure are selected. The five additional columns are on top of the mapped columns.
Povratne informacije
Pošalјite i prikažite povratne informacije za