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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
andykbba
Regular Visitor

Tree Map

Hi all,

I have some general Australian Bureau of Statistics Data. 

Essentially I have the location of a place in Australia (in one column)

andykbba_0-1698281673910.png

 

And 19 other columns which show how many people in Australia work in one particular area of employment. 

andykbba_2-1698281940295.png

 

When i create a treemap it looks overly clustered as it is trying to fit all 19 industries of employments in. 

I have a slicer which can be applied to produce the results for each postcode and the industries of employment vary depending on what is most popular in each area. 

How do i apply a limitation/filter to only show the top 5 industries of employment in the tree map? 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @andykbba 
You need to unpivot your table to get the form:

Ritaf1983_0-1698291201654.png

Then you can use the top n filter.

Guide to unpivot :

https://www.youtube.com/watch?v=T8Ekr_sLP-0

Filtering by top n:

https://www.youtube.com/watch?v=4N-KocuYyNU

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

 
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Hi @andykbba 
The error message says that you used the column that you need to unpivot as the primary key to create a a relationship, which is not efficient practice.

 You need to create another table with unique values of this column and use it to create relationships.
For more information please refer :

https://www.seerinteractive.com/insights/join-many-many-power-bi

(this is a more detailed explanation of bridge tables)

https://learn.microsoft.com/en-us/power-bi/guidance/star-schema

this is about modeling

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
andykbba
Regular Visitor

Hi thanks for the suggestion,

I am presented with the following error though

Hi thanks for this suggestion, 

When I do this it provides me with the following error. 

andykbba_0-1698715106001.png

 



Hi @andykbba 
The error message says that you used the column that you need to unpivot as the primary key to create a a relationship, which is not efficient practice.

 You need to create another table with unique values of this column and use it to create relationships.
For more information please refer :

https://www.seerinteractive.com/insights/join-many-many-power-bi

(this is a more detailed explanation of bridge tables)

https://learn.microsoft.com/en-us/power-bi/guidance/star-schema

this is about modeling

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @andykbba 
You need to unpivot your table to get the form:

Ritaf1983_0-1698291201654.png

Then you can use the top n filter.

Guide to unpivot :

https://www.youtube.com/watch?v=T8Ekr_sLP-0

Filtering by top n:

https://www.youtube.com/watch?v=4N-KocuYyNU

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

 
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.