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! Learn more

Reply
billybazinga
Frequent Visitor

Relationship on a column containing a match

Hi everyone,

 

I was hoping you could share some guidance: I have a dataset with a large number of tables and am having issues with two specifically:

 

Table 1

DateAmtReceiptManufacturer
1-Jan15ABCMFN 1: Part wert, MFN 3: Part ert
2-Jan10DBCMFN 1: Part xxx, MFN 4: Part dey
3-Jan25BHY 
4-Jan20YUHMFN 5, MFN 1
5-Jan35EDGMFN 4
6-Jan30UIOExample 3

 

Table 2

Manufacturer Name
MFN 1
MFN 2
MFN 3
MFN 4
MFN 5

 

I would like to create a relationship between Table 2 and Table 1, with a view to use the Manufacturer field from Table 2 in a slicer to identify, as an example, the total amount per potential manufacturer (understanding that the amount 15 would forever be listed against both "MFN 1" and "MFN 3". I would have other slicers from other tables and don't really have an ability to change the structure of Table 1, other than adding columns.


Any clever ideas?

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @billybazinga 

If you need to filter table data, you can consider applying a measure to visual filter pane.

 

Measure = 
var a=IF(CONTAINSSTRING(MAX(Table1[Manufacturer]),MAX(Table2[Manufacturer Name])),1,0)
return IF(ISFILTERED(Table2[Manufacturer Name]),a,1)

veasonfmsft_0-1658976156574.png

 

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @billybazinga 

If you need to filter table data, you can consider applying a measure to visual filter pane.

 

Measure = 
var a=IF(CONTAINSSTRING(MAX(Table1[Manufacturer]),MAX(Table2[Manufacturer Name])),1,0)
return IF(ISFILTERED(Table2[Manufacturer Name]),a,1)

veasonfmsft_0-1658976156574.png

 

 

Best Regards,
Community Support Team _ Eason

tamerj1
Super User
Super User

Hi @billybazinga 

I don't think creating a relationship is feasible. However you can create measures like

Amount =
SUMX (
    Table1,
    SUMX (
        Table2,
        IF (
            CONTAINSSTRING ( Table1[Manufacturer], Table2[Manufacturer] ),
            Table1[Amt]
        )
    )
)

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.