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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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