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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
OzgurKlc
Frequent Visitor

Wrong sub totals and same row

Hi All,

 

I have problem with subtotal of matrix report.

 

My measure is like below but in the report I am getting like this. Same row number and wrong sub totals  with customer name.

Thx for your assist

OzgurKlc_3-1694860292010.png

 

2005 = SUMX(VALUES('Order'[PArtno]),
                SUMX(
                FILTER(
                    RELATEDTABLE('BOM'),
                        ('BOM'[Whs]<>"MSSL"
                          &&
                          'BOM'[whs2]="2005")
                          &&
                          (
                                RIGHT('BOM'[SubParts],3)="IS1"||
                                RIGHT('BOM'[SubParts],3)="IS2"||
                       
                                RIGHT('BOM'[SubParts],3)="IS3"
                             
                          )
                ),
                ('Bom'[Qty] 'Bom'[Weight])/1000
                )
           
            * [rate]
            )
5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and clearly show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
OzgurKlc
Frequent Visitor

Hi @Greg_Deckler  ,

It is working well when I remove the company name ( it is in order table with part code) measure from the rows . any suggest?

@OzgurKlc Well, that would also suggest a potential missing relationship. What does the data model look like?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

  order table and bom table  have many to many and btw bom and stock balance(qty) have many to many.

Greg_Deckler
Community Champion
Community Champion

@OzgurKlc Seems like there may be a missing relationship between your tables.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.