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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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

1 ACCEPTED SOLUTION
kushanNa
Super User
Super User

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

 

 

 

View solution in original post

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors