Skip to main content

Sort Processes

How to sort processes?

Processes are sorted by Process Id. Order can be customized with Power BI's "Order by columm"-setting.

Let's consider these three processes as example. Process Id in this case is string and it's sorted alphabetically as default.

Process IdProcess SortEvent IdNext Event IdEvent Label
b0111020Event A
b0112030Event B
b01130Event C
b0221030Event A
b0222030Event B
b02230Event C
a0131030Event A
a0132030Event B
a01330Event C


In process chart a01 is the first one even if in data it's last.

Before Sort

To fix this,

  1. Select the Process Id column.
  2. Select Column tools -> Sort by column, and choose column to be used in sorting.
Sort

Now processes are sorted in different order.

After Sort

Note

Power BI's Sort by column might be tricky to use in some cases. Power BI requires that values in column that is sorted and in column that is used in sorting matches each other (columns need to be at the same level of granularity).

See more from Sort one column by another column in Power BI - Power BI | Microsoft Learn