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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
noisyboey10
New Member

Powerbi total sum many to many issue

Hello Good day ladies and gentleman,

I'm facing this total sum issue for my table visual. 

I've this 4 tables with multiple columns. Lets call it Table A,B,C,D

A(1<->*)D, A(1->*)C ,B(1->*)C

Primary key - ID

note- Table D is the sales table and its ID key is in the form, ID1, ID2, ID1_ID2_3, ID4, ID5_ID6 etc. but for the remaining tables IDs are in the form ID1, ID2, ID3, etc.

So, now when I pull columns from all these 4 tables the table visual should look something like 

BID(tableC)   mfg.site(tableC)   ID(tableA)    category(tableB)     sales(tableD)

BID1                greece                 ID1                   catA                    54

BID2                 turkey                 ID1                    catB                    7

BUT

Im getting 

BID(tableC)   mfg.site(tableC)   ID(tableA)    category(tableB)     sales(tableD)

BID1                greece                 ID1                   catA                    61(54+7)

BID2                 turkey                 ID1                    catB                   61(54+7)

Why is this happening? And what are the next steps should I take to get the desired output? i.e sales for individual mfg site?

Thanks for reading this. Much appreciated 

Please ask me questions for further clarification.

 

 

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@noisyboey10  Looks like there is a datamodel issue. Table primary keys and foreign keys might not be matching.

let me have some sample data then I can resolve , becasue the data point shown in the explanation is bit confusing. 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

3 REPLIES 3
v-priyankata
Community Support
Community Support

Hi  @noisyboey10
Thank you for reaching out to the Microsoft Fabric Forum Community.

@VijayP Thanks for the inputs.
As suggested by user, 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? 

How to provide sample data in the Power BI Forum - Microsoft Fabric Community


Thanks.

 

 

 

Hi  @noisyboey10
Thank you for reaching out to the Microsoft Fabric Forum Community.

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

 

VijayP
Super User
Super User

@noisyboey10  Looks like there is a datamodel issue. Table primary keys and foreign keys might not be matching.

let me have some sample data then I can resolve , becasue the data point shown in the explanation is bit confusing. 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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