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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Syndicate_Admin
Administrator
Administrator

Different result for calculation field between many and many tables

Hello

I put the relationship between three tables.

SalesOrder -> SalesOrderNo. • SalesOrderDetails -> SalesOrderNo. (Many to one)
SalesOrderDetails -> SalesOrderNo. • SalesInvoiceSODetails -> SalesOrderNo. (Many to many)
SalesOrderDetails -> ItemCode - SalesInvoiceSODetails -> ItemCode (Many to Many)
SalesOrderDetails -> SeqNo - SalesInvoiceSODetails -> SOSeqNo (many to many)

Example 1 : Originally, the sales order only included four items. When I select"Sum" for the "InvQty". The total transaction has still been 4 lines

Remark : The "InvQty" field located in the "SalesInvoiceSODetails" table

Error1.png


Example 2: On the same sales order, I now select "Do not summarize" for the "InvQty". The total transaction of up to 16 lines. Actually, this only has 4 lines. So you can know how to fix it ?

Error2.png
¡Gracias!
Brian

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Syndicate_Admin 

 

Do you notice the cross filter direction of the relationships between tables? Assume you want to filter SalesInvoiceSODetails table by SalesOrderDetails table with SalesOrderNo. column, modify its cross filter direction into Single (SalesOrderDetails filters SalesInvoiceSODetails) instead of Both. In addition, only one active relationship can exist between two tables, so select an appropriate relationship as the active relationship.

071401.jpg

You could refer to Model relationships in Power BI Desktop article to learn more about relationships.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Syndicate_Admin 

 

Do you notice the cross filter direction of the relationships between tables? Assume you want to filter SalesInvoiceSODetails table by SalesOrderDetails table with SalesOrderNo. column, modify its cross filter direction into Single (SalesOrderDetails filters SalesInvoiceSODetails) instead of Both. In addition, only one active relationship can exist between two tables, so select an appropriate relationship as the active relationship.

071401.jpg

You could refer to Model relationships in Power BI Desktop article to learn more about relationships.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors