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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jostnachs
Helper IV
Helper IV

Duplicating rows because of relationship issues

Hi all... I have rows duplicating in my matrix visual issue . I think its because of the relationship but i am unable to figure out how to fix this.below is my relation ship 

V_Schedule_GLHazard-Dimension (Uniqpolicy) table connected to V_DimPolicy(PolicyID) Fact table with many-many relationship

V_Schedule_Property_Subject-Dimension (Uniqpolicy) table connected to V_DimPolicy(PolicyID) Fact table with many-many relationship.

But when i bring fields from these two tables into a table then the lines are duplicating as shown.

green is fields coming from V_Schedule_GLHazard and yellow is fields coming from V_Schedule_Property_Subject. 

jostnachs_1-1748818468968.png

 

jostnachs_0-1748818287020.png

Reagrds,

Jostna

4 REPLIES 4
v-tsaipranay
Community Support
Community Support

Hi @jostnachs ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

 

v-tsaipranay
Community Support
Community Support

Hi @jostnachs ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

 

v-tsaipranay
Community Support
Community Support

Hi @jostnachs ,

Thank you for reaching out to Microsoft fabric community forum.

 


I wanted to check if you had the opportunity to review the information provided by @kushanNa . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

 

kushanNa
Solution Sage
Solution Sage

Hi @jostnachs 

 

I'm not sure what your expected output is here. As you correctly mentioned, this is happening due to the many-to-many relationship. For 2 values in the GLHazard table, there are 4 matches.

I’m just guessing you might be expecting an output like this. If that’s the case, please try using the following DAX measures.

HazardList = 
CONCATENATEX(
    FILTER(
        V_Schedule_GLHazard,
        V_Schedule_GLHazard[UniqPolicy] = SELECTEDVALUE(V_DimPolicy[PolicyID])
    ),
    V_Schedule_GLHazard[GL Class Code Desc],
    ", "
)
PropertyList = 
CONCATENATEX(
    FILTER(
       V_Schedule_Property_Subject,
        V_Schedule_Property_Subject[UniqPolicy] = SELECTEDVALUE(V_DimPolicy[PolicyID])
    ),
    V_Schedule_Property_Subject[SubjectOfInsuranceDesc],
    ", "
)

 

kushanNa_1-1748837307264.png

 

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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