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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
PaiYa
New Member

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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