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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PengB
New Member

one record in table one associated with all records in table 2 in Power Povit

 Hi guys,

 

Below are a sample tables I use to ask the question that happens in a bigger file. After I created relationship in Power Pivot using table 1 and table 2, I created a Pivot Table. But why each ASIN in Table 1 is associated with all ASINs in Table 2? Shouldn't it be one ASIN in Table 1 associated to one ASIN in Table 2?  Thanks for your help!


Table 1: 

ASINProduct NameCategory
B001Vacuum CleanerCleaning
B002Steam MopCleaning
B003Air PurifierAir Care
B004Robot VacuumCleaning
B005Handheld VacuumCleaning

 

Table 2: 

ASINRevenueUnits Sold
B00110000100
B002800080
B00312000120
B00415000150
B005500050
B006700070

 

Relationship in Power Pivot:

PengB_0-1736708713541.png

 

Now the Pivot Table looks like this:

PengB_1-1736708769581.png

 

Why it doesn't look like this:?

 

ASINASINProduct Name
B001B001Vacuum Cleaner
B002B002Steam Mop
B003B003Air Purifier
B004B004Robot Vacuum
B005B005Handheld Vacuum
(blank)B001(blank)
 B002(blank)
 B003(blank)
 B004(blank)
 B005(blank)
 B006(blank)

 

1 ACCEPTED SOLUTION

Hi,

The Grouping in any visual should always happen by the fields (columns) in the dimension tables (not the fact tables)


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

View solution in original post

8 REPLIES 8
Ray_Minds
Continued Contributor
Continued Contributor



Hi  To understand the exact issue which you are facing, I tried to create the scenario in Power BI. 
 
Step –1: Create two tables like below in Power BI (Enter data option and paste the below tables) 

 

 


 
Table –1 
 

ASIN 

Product Name 

Category 

B001 

Vacuum Cleaner 

Cleaning 

B002 

Steam Mop 

Cleaning 

B003 

Air Purifier 

Air Care 

B004 

Robot Vacuum 

Cleaning 

B005 

Handheld Vacuum 

Cleaning 

 
Table –2 
 

ASIN 

Revenue 

Units Sold 

B001 

10000 

100 

B002 

8000 

80 

B003 

12000 

120 

B004 

15000 

150 

B005 

5000 

50 

 
Step –2 Create relationship in Model view  
 

 

 
Step –3 Represent the data in a matrix visual 
 

 


In above matrix visual, the functionality is working as you are expecting. (one ASIN in Table 1 associated to one ASIN in Table 2, not each ASIN in Table 1 is associated with all ASINs in Table 2). 
 
Try implementing the solution in Power BI and then you can export the results in excel by clicking on ellipses and export button. 
 

 


If the provided steps have addressed your concern, kindly mark this post as the solution to assist other members who may encounter a similar issue.

Ray_Minds_1-1736834406559.png

Ray_Minds_0-1736834371766.png

Ray_Minds_1-1736834220688.jpeg

Ray_Minds_0-1736834220686.jpeg

@PengB

Thank you for your detailed response. Although you didn't give me the answer to my question about Power Pivot, you did provide a good solution in Power BI. 

Ashish_Mathur
Super User
Super User

Hi,

Do not drag ASIN from Table 2.  Also, drag Units sold to the values well.


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

Hi Ashish,

 

Thank you for your reply. Why can't I drag ASIN from Table 2? Sometimes I need to check if there are any ASINs that are in Table 2 but not in Table 1. Yes, looks like dragging Units sold to the values solve the problem, but what the reasons behind? 

 

Thanks,

Hi,

The Grouping in any visual should always happen by the fields (columns) in the dimension tables (not the fact tables)


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

Now I got it. Thank you Ashish! 

samratpbi
Super User
Super User

Hi,

Have you defined the relationship between the tables? Seems the relationship is not defined properly.

 in the Model view. Please check once.

 

If this helps to resolve your issue, then please mark it as solution provided, Thanks!
Samrat

 

Hi Samrat,

 

Thank you for your quick response. I've defined the relationship. Check this screenshot. 

PengB_0-1736722152176.png

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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