Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
garythomannCoGC
Impactful Individual
Impactful Individual

power bi desktop "decomposition tree" visual "explain by" does the column order matter

Summary

power bi desktop "decomposition tree" visual "explain by" does the column order matter

 

Details

noticed that the 'pick' from the visual always displays the "explain by" columns in alphabetical order regardless of the order in the explain by section

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Thanks for the reply from Uzi2019  and Abhijeet_40 , please allow me to add some more information:
Hi  @garythomannCoGC ,

As far as I know, the default sorting rule of Power BI Desktop is to sort based on alphabetical order, this is due to the design of Power BI, if you want to customize the sorting rule, you can create a new table and [Index] column to achieve it.

I created some sample data:

vyangliumsft_0-1737358036189.png

Power Query -- Add Column – Index Column – From 1.

vyangliumsft_1-1737358036191.png

If each Group has only one index, then you can just Sort by column

If your data is the same as my sample data, and each Group has more than one Index, then you will get the error

vyangliumsft_2-1737358069981.png

You can create a table with a distinct [Group] column and a grouped minimum [Index], and join the new table with the old table to implement the sort.

1. Create calculated table:

Table 2 =
SUMMARIZE('Table',[Group1],"Index",MINX(FILTER(ALL('Table'),[Group1]=EARLIER([Group1])),[Index]))

vyangliumsft_3-1737358069983.png

2. Select [Group1] – Column tools – Sort by column – [Index].

vyangliumsft_4-1737358101158.png

3. Joins the relationship between two tables:

vyangliumsft_5-1737358101159.png

4. Result:

vyangliumsft_6-1737358121457.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yangliu-msft
Community Support
Community Support

Thanks for the reply from Uzi2019  and Abhijeet_40 , please allow me to add some more information:
Hi  @garythomannCoGC ,

As far as I know, the default sorting rule of Power BI Desktop is to sort based on alphabetical order, this is due to the design of Power BI, if you want to customize the sorting rule, you can create a new table and [Index] column to achieve it.

I created some sample data:

vyangliumsft_0-1737358036189.png

Power Query -- Add Column – Index Column – From 1.

vyangliumsft_1-1737358036191.png

If each Group has only one index, then you can just Sort by column

If your data is the same as my sample data, and each Group has more than one Index, then you will get the error

vyangliumsft_2-1737358069981.png

You can create a table with a distinct [Group] column and a grouped minimum [Index], and join the new table with the old table to implement the sort.

1. Create calculated table:

Table 2 =
SUMMARIZE('Table',[Group1],"Index",MINX(FILTER(ALL('Table'),[Group1]=EARLIER([Group1])),[Index]))

vyangliumsft_3-1737358069983.png

2. Select [Group1] – Column tools – Sort by column – [Index].

vyangliumsft_4-1737358101158.png

3. Joins the relationship between two tables:

vyangliumsft_5-1737358101159.png

4. Result:

vyangliumsft_6-1737358121457.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

garythomannCoGC
Impactful Individual
Impactful Individual

Thank you both for your answers and help, much appreciated.

Uzi2019
Super User
Super User

Hi @garythomannCoGC 

 

Yes. you are right. the order in which you are putting your fileds in Explain by section is random order. but when you open your expand your explain by fileds it shows Alphabetical order. That's actually a very useful when you want to find something. 

 

Uzi2019_0-1737095933990.png

 

 

when you want something which start from Z , you will find it at the bottom of the list. that's how actually list/ filters/slicers works in power bi

 

I hope I answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @garythomannCoGC 

 

Column order does not matter when you add it in Explain by section. it completely upto you how to know it to drill down when your displaying decomposotion tree.

 

Order of columns does not matter in Decomposition tree.

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Abhijeet_40
Frequent Visitor

Hello!

The order presented in the "explain by" section might not hold significant importance, as the insights a user seeks on a dashboard can vary based on individual needs. The ability to change the order within the visual is highly valuable in such cases.

However, if we consider a report designed to present specific findings, the flexibility of changing the order may not be as relevant, since options won’t be visible to others during a presentation.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.