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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
PaiYa
Frequent Visitor

In Power Pivot, rows with erroneous data appear

I have three table in Data Model, Salespersons, Products and Orders.

微信图片_20250107155252.png微信图片_20250107155258.png微信图片_20250107155301.png

The relationship between three table is as below:

1. By SalespersonID: Salespersons (one) <= Orders (many)

2. By ProductID: Products (one) <= Orders (many)

微信图片_20250107160502.png

When I use Power Pivot as below, if there is not field used in Values, it could not show the related item. (as Orders, Alice should own 101 and 103)微信图片_20250107161504.png

If there is field used in Values, it somehow could show the related item. (as Orders, distinct count of Alice's Product ID is 2, 101 and 103)

微信图片_20250107161341.png

I would like to ask whether the data model fails to recognize the intended relationships in Rows and Columns when no fields are referenced in Values.

 

 

1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @PaiYa  

Power Pivot in Excel and Power BI do indeed handle relationships and data modeling differently, which can lead to the behavior you're observing.

 

In Power Pivot, when you place SalespersonName and ProductID in the Rows area, it might show all Product IDs under each Salesperson if there are no fields in the Values area to enforce the relationships. This happens because Power Pivot performs a full outer join, displaying all possible combinations of Salesperson and Product ID.

 

To ensure that only the relevant Product IDs appear under each Salesperson, you need to use measure or field in the value field.

 

Hope this helps!!

If this solved your problem, please accept it as a solution and kudos!!

 

Best Regards,
Shahariar Hafiz

View solution in original post

4 REPLIES 4
shafiz_p
Super User
Super User

Hi @PaiYa  

Power Pivot in Excel and Power BI do indeed handle relationships and data modeling differently, which can lead to the behavior you're observing.

 

In Power Pivot, when you place SalespersonName and ProductID in the Rows area, it might show all Product IDs under each Salesperson if there are no fields in the Values area to enforce the relationships. This happens because Power Pivot performs a full outer join, displaying all possible combinations of Salesperson and Product ID.

 

To ensure that only the relevant Product IDs appear under each Salesperson, you need to use measure or field in the value field.

 

Hope this helps!!

If this solved your problem, please accept it as a solution and kudos!!

 

Best Regards,
Shahariar Hafiz

MattAllington
Community Champion
Community Champion

Yes, they behave differently. To see what you see in Power BI while using Power Pivot, you need to add the measure I mentioned 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
MattAllington
Community Champion
Community Champion

You must have a measure to leverage the relationships. If you have no measure, it simply lists all possible outcomes. If you simply did a countrows of orders and added it to values, it would show you the count of transactions in your order table. If you want tou count the products, then do a count of the Orders[product ID]



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Thank you for your reply. My confusion is not about how to use measures, but rather about how Power Pivot interprets relationships (Excel seems to behave differently from Power BI). Based on Order, when I place SalespersonName and ProductID in rows, the data should appear as follows, rather than as shown in the image.

Alice
101
103
Bob
102
Charlie
101

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.