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
brian0782
Helper II
Helper II

Incorrect total in many to many relationship

Hi, I have the following data model where there is a many to many relationship between Binding Authority and Claim Amounts:

 
 

2022-01-10_16-45-21.png

 

I have the following measure:

Authority Amt = SUMX(VALUES('Binding Authority'[UMR]),CALCULATE(SUM('Authority Amounts'[Authority Amount])))
 
The issue I'm having is I'm getting repeating values when I return the value in a matrix:
 
brian0782_2-1641834139476.png

I think the issue is with Class because when I remove it, it seems to work ok

 

brian0782_3-1641834242527.png

 

Any idea where I may be going wrong? 

 

Many Thanks

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@brian0782  DAX101 says never to use many to many relationship, use a bridging table and build a star schema.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

4 REPLIES 4
v-angzheng-msft
Community Support
Community Support

Hi, @brian0782 

The current model seems to be more elegant than the previous one, and if it works for you, it's what you need.

Simple is usually good.

 

If you still want to learn more about data modeling practices, here are related blogs that can help you

https://community.powerbi.com/t5/Community-Blog/Data-Modelling-In-Power-BI-Helpful-Tips-amp-Best-Pra...

https://blog.enterprisedna.co/data-modelling-in-power-bi-tips-best-practices/

https://sqlserverbi.blog/2020/12/25/doing-power-bi-the-right-way-6-data-modeling-essentials-best-pra...

https://www.youtube.com/watch?v=kiVXI7zjSzY

 

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

smpa01
Super User
Super User

@brian0782  DAX101 says never to use many to many relationship, use a bridging table and build a star schema.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi, thanks for your response.

 

I did originally have a bridge table but couldn't get it working. 

 

I've amended the model and I think it's working as expected now.

 

Is the below model the preferred approach?

 

brian0782_0-1641896480736.png

 

Excuse me @brian0782  , Did You get an answer for that problem .

I have the same Issue in subtotals Although I made a bridge instead many-to-many ,I don't use meausures in this case.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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