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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
qoqa89
Regular Visitor

how to apply treemap without a direct relationship between tables power bi

"I have a question that I'm struggling with.

As you can see in the images, this data is from AdventureWorks 2019. The relationship between the 'orders' table and the 'products' table is not direct, so when I use a treemap, the number of #orders is the same for all fields, and I want it to change depending on which field the mouse is hovering over.

I would appreciate it if someone who knows the answer could write the steps individually for anyone new to learning Power BI."464957991_8894405743956653_2966113540515803229_n.png

 

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @qoqa89 

 

I think you are getting same #order( order table) against all product (product table).

As you can see the relationship between 2 table in one way.  

 

you can change the relationship by clicking on it > set it to both direction > save

 

Uzi2019_0-1730700770132.png

 

 

By doing this you data will be filtered based on product value also.you will not get same numbers for product. 

 

set both the relationship to both direction

Uzi2019_1-1730700874476.png

 

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

6 REPLIES 6
Uzi2019
Super User
Super User

Hi @qoqa89 

 

I think you are getting same #order( order table) against all product (product table).

As you can see the relationship between 2 table in one way.  

 

you can change the relationship by clicking on it > set it to both direction > save

 

Uzi2019_0-1730700770132.png

 

 

By doing this you data will be filtered based on product value also.you will not get same numbers for product. 

 

set both the relationship to both direction

Uzi2019_1-1730700874476.png

 

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

It works smoothly. thanks a lot

@qoqa89 
Happy to help!!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
FreemanZ
Super User
Super User

hi @qoqa89 ,

 

what do you mean by "all field", or what columns do you have for the treemap?

when you use treemap ex. for categories it will divide into fields depending on the value of each category.
Uzi2019 gave the solution. thank you for being interested.

when you use treemap ex. for categories it will divide into fields depending on the value of each category.
Uzi2019 gave the solution. thank you for being interested.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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