cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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!

 

2 REPLIES 2
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

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors