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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Mani_1
Frequent Visitor

Matrix with same values across all rows

Hi,

I am trying to get the contribution of shipments by sub companies which are under main companies, but i get the same values across all rows. how to solve this problem.I have encosed pictures of matrix, relationships.

 

Please help me out from this issue

Thanks,

 

Thanks1.png2.png

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @Mani_1 

 

I have used your data:

mlsx4_1-1692192351431.pngmlsx4_2-1692192365197.png

 

Relate the ID:

mlsx4_3-1692192398362.png

And calculate shipment

Shipment = COUNT('001_sub'[ID])

mlsx4_0-1692192333882.png

 

It's working fine

View solution in original post

7 REPLIES 7
mlsx4
Memorable Member
Memorable Member

Hi @Mani_1 

 

I don't know which measure are you using, but you should use a iterative formula: SUMX, AVERAGEX or something similar

Mani_1
Frequent Visitor

I'm not using any measure here

mlsx4
Memorable Member
Memorable Member

How is your data structured? I mean...

 

Shipments, weight, etc... are fields of Main (and you have some ID to relate with subcompany) or how?

Can you provide some dummy data here?

Mani_1
Frequent Visitor

Hi @mlsx4 ,

Please find the dummy data in screenshot, here count of ID is shipment, two tables are connected by ID field.

Sample_dummy.png

mlsx4
Memorable Member
Memorable Member

Hi @Mani_1 

 

But according to your relationship, company name is never duplicated (in dummy data it is), isn't it?

 

Anyway, if weight and volume is only in main, it will be difficult to separate by subcompany. It would always take the total

Mani_1
Frequent Visitor

Hi @mlsx4 ,

yes, but it should show the shipment count right??

 

mlsx4
Memorable Member
Memorable Member

Hi @Mani_1 

 

I have used your data:

mlsx4_1-1692192351431.pngmlsx4_2-1692192365197.png

 

Relate the ID:

mlsx4_3-1692192398362.png

And calculate shipment

Shipment = COUNT('001_sub'[ID])

mlsx4_0-1692192333882.png

 

It's working fine

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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