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

Top N Filter

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-1698288961016.png

 

 

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

andykbba_1-1698288999466.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?

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, select the Location column, right click and select "Unpivot Other Columns".  Click on Close and Apply.  Work with this transformed dataset.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi thanks for this suggestion, 

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

andykbba_0-1698715106001.png

 






On unpivoting, entries in the location column are repeating causing the Many to One relationship to fail.  Create a Location Dim Table which should only have all the unique locations.  Create Many to One relationships to this Location dim table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.