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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dasingh9
Frequent Visitor

Multiple Relationships on two tables for filtering data

Hi, I am concerned about creating multiple relationships between my two tables (Students and Tags List) and filtering the values of Students table based on a slicer using Tags List table.

 

I am using a column chart to display the number of students for each faculty (refer screenshots) and I want to filter the chart data using a slicer of Tags List (International, Domestic, Postgraduate, Undergraduate).

 

Currently, I am able to filter the values for Tag1 relation only (Postgraduate,  Undergraduate), however, the filter is not working for Domestic or International.

 

1) Here is the download link to Faculty_Wise_Report.pbix file

2) Here is the download link to Sample Data

 

Tables / Relationships:
Students[Tag1] --> Tags List[Tag Name]
Students[Tag2] --> Tags List[Tag Name]


Tables and RelationshipsTables and Relationships

Report OutputReport OutputHere is the structure of my tables.

 

Table 1: Students

Student IDNameCourseFacultyTag1Tag2
101AMaster of ArtsArtsPostgraduateInternational
102BBachelor of ArtsArtsUndergraduateDomestic
103CMaster of CommerceBusinessPostgraduateInternational
104DBachelor of CommerceBusinessUndergraduateDomestic
105EMaster of ScienceSciencePostgraduateInternational

 

Table 2: Tags List

Tag Name
Postgraduate
Undergraduate
International
Domestic

 

Cheers,

Davinder

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @dasingh9,

 

Only one active relationship can be existing between two tables. In this scenario, it's based on [Tag1] and [Tag Name]. So, the slicer can filter on [Tag1] only, when you choose Domestic or International, the chart visual shows blank as there is no corresponding records in [Tag1].

 

For your requirement, plesae new a calculated table. Create a one to many relationship between this table and Tag list table based on [Tag] field.

Students2 =
UNION (
    SELECTCOLUMNS (
        Students,
        "Student ID", Students[Student ID],
        "Name", Students[Name],
        "Course", Students[Course],
        "Faculty", Students[Faculty],
        "Tag", Students[Tag1]
    ),
    SELECTCOLUMNS (
        Students,
        "Student ID", Students[Student ID],
        "Name", Students[Name],
        "Course", Students[Course],
        "Faculty", Students[Faculty],
        "Tag", Students[Tag2]
    )
)

1.PNG

 

Drag fields from 'Students2' to chart visual.

 

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @dasingh9,

 

Only one active relationship can be existing between two tables. In this scenario, it's based on [Tag1] and [Tag Name]. So, the slicer can filter on [Tag1] only, when you choose Domestic or International, the chart visual shows blank as there is no corresponding records in [Tag1].

 

For your requirement, plesae new a calculated table. Create a one to many relationship between this table and Tag list table based on [Tag] field.

Students2 =
UNION (
    SELECTCOLUMNS (
        Students,
        "Student ID", Students[Student ID],
        "Name", Students[Name],
        "Course", Students[Course],
        "Faculty", Students[Faculty],
        "Tag", Students[Tag1]
    ),
    SELECTCOLUMNS (
        Students,
        "Student ID", Students[Student ID],
        "Name", Students[Name],
        "Course", Students[Course],
        "Faculty", Students[Faculty],
        "Tag", Students[Tag2]
    )
)

1.PNG

 

Drag fields from 'Students2' to chart visual.

 

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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