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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hnowotny17
Helper I
Helper I

Sorting in Treemap chart

Dear PBI community,

I would like to kindly ask for a help.

 

I have 2 treemap charts, each is representing the share of given category for this year and last year.

 

I would like to sort the categories, that each category will be next each other - that means that for example category in orange colour of 1 chart, will be next the orange colour category in the second chart. 

 

I wanted to sorted the categories alphabetically, but didn´t find how. Does anyone know?

Many thanks! 

 

Jan Novotny

 

treemap charts.PNG

 

 

7 REPLIES 7
hnowotny17
Helper I
Helper I

Dear @Pragati11,

 

Many thanks for your reply.

 

Do you know any alternatives? For example any extension from "next visuals"?

 

Thank you again and have a nice weekend,

Jan N

HI @hnowotny17 ,

 

Is it possible for you to share your pbix file to try a workaround at my side?

Or if you can share some sample data?

If you share Pbix file make sure to remove any sensitive data. You can share a dropbox link or WeTransfer,

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Dear @Pragati11,

 

many thanks for you wilingness to help.

 

I´ve created the example file and uploaded to One Drive: Vertical charts.pbix

 

If you will have any idea, how tho sort that categories to be next each other I would really appreciate.

 

Have a nice day,

Jan Novotny

 

hnowotny17_0-1675084990931.png

 

Is this what you are looking for?

Screen Capture #268.png

Dear @Ahmedx,

 

Could you please tell me, how did you make it? 🙂

 

Many thanks and have a nice day,

Jan N

Yes @Ahmedx 

exactly like this! 🙂

Pragati11
Super User
Super User

HI @hnowotny17 ,

 

Unfortunately you can't sort the order on a Treemap visual by a categorical field.

It by default shows the category with maximum value as first section.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.