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
nathaliaalves
Regular Visitor

Treemap summarization of a quick measure

Hello,

 

I'm trying to use a Treemap for showing average values from a quick measure for a category and its details. However, it seems that the Treemap is sorting the category over the sum of the averages of each detail instead of the averages overall.

 

My Treemap looks like this:

nathaliaalves_0-1660228558374.png

 

My quick measure looks like this:

AverageWorkingHours =
DIVIDE(
    SUM('FactCampusCH'[Carga-horária]),
    SUM('FactCampusQtdDocentes'[Quantidade Docentes])
)
 
FactCampusCH looks like this:
nathaliaalves_3-1660229501366.png

 

FactCampusQtdDocentes looks like this:

nathaliaalves_4-1660229582604.png

 

 

I noticed that each category block (e.g. campuses CTC, CCS, CFH, CCS, etc.) is sorted over the sum of each of their details (average working hours of Departments) but I wanted the biggest average to appear first and not the biggest sum. This makes it seems that "CTC" has bigger average working hours than "CTE" (because CTC has more Departments, making the sum of its averages bigger than CTE), which is not true.

nathaliaalves_1-1660228784937.png

 

If I take the details off, the Treemap looks (correctly) like this (CTE first, CDS second, etc.):

nathaliaalves_5-1660229884170.png

 

I wanted to maintain this correct order with the details. But once I put on the details the Treemap changes the ordering 😞

 

Any ideas on how can I achieve this?

 

Thanks!

 

4 REPLIES 4
blqs12
Regular Visitor

Hi, I am currently facing the same issue. Did you find any workaround or solution to this @nathaliaalves ?

Aethelson
New Member

I have exactly the same problem. Is there any solution?

amitchandak
Super User
Super User

@nathaliaalves , Tree Map does not support the sort option. The usual trick is to add a tooltip and sort of that

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Sorry, I didn't quite understand. I don't want to "sort", I just want the order of the category "blocks" to be based on the average and not the sum of the details.

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.