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
_JoSi_DA
Frequent Visitor

Matrix is displaying too many rows of related tables

Hi all,
I stumbled over a strange behaviour, which I didn't expect. Acutally pretty simple config...
I have two tables groups and objects, which have a 1-to-*-relationship. The object table itself is linked to other tables...
Group Table

IdGroupName
1Group1
2Group2
3Group3


Object Table

IdObjectNameGroupId
1A1
2B1
3C2
etc.  


Now, I have a matrix visual showing the groupnames as rows, which works as it should.

However, as soon as I also insert the object names as second row level in the matrix, it is showing every object underneath each of the groups, although not every object is indeed in that group.

I was expecting Power BI to recognize via the relation between the two tables, which objects are part of the group and display accordingly?!

Thanks for the support 🙂


Greetings,
J.

4 REPLIES 4
Anonymous
Not applicable

Hi @_JoSi_DA ,

 

I tried to reproduce the problem, but I created the data and it showed correctly. If you can, provide some screenshots of the error and remember to protect your privacy.

vstephenmsft_1-1698649843457.png

 

Best Regards,

Stephen Tao

 

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

Hey Stephen,

 

thanks for your reply.

Indeed it is working like in your example as long as I do not add additional values/measures to the maxtrix.

_JoSi_DA_0-1698679630731.png

 

As soon as I add a meaure, which e.g. calculates the quantity of articles in each category, it shows all articles underneath each category. The data model/realtionships are as follows:

_JoSi_DA_2-1698679753765.png

Furthermore I have two dropdowns on the page in order to filter by year and BusinessUnitName (see yellow fields). Quantity Measures is pretty simple:

WW Quantity = COALESCE(SUM(WW_ReportedData[Total]), 0)

 

Many thanks, J.

One more note: I guess the issue is caused by the fact, that since CALCULATE always removes the filter context in general, this does also apply to the filter, which is given by the relationship between Group --> Object. So IMO there must be a way to tell Power BI to remove the filter context, but keep the filter given by the Group --> Object relationship?! I already tried some wiht ALLEXCEPT, but I didn't work so far.

brokencornets
Helper IV
Helper IV

Obvious question, but is there a relationship between Object|Group ID and Group|ID fields showing in the data model?

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.