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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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?


@ 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!:
The Definitive Guide to Power Query (M)

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.