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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Need relationshp btw 2 tables Table-A Table-B which are not having common column for Merging 2 table

TABLE A

nameIDresultmethod   
A1232cod   
A12530mod   
B124643cod   
C13851mod   
C13923eod   
D52722cod   
D5303mod   
D52940.3eod   
C1402.82cod  

 

 

 

TABLE B

A IDB IDC IDD ID 
1221246138527 
1231241139530 
1251200140529 
1291234142520 
     

 

result:

AnilBeerla_0-1697527003169.png

 

3 REPLIES 3
PijushRoy
Super User
Super User

Hi @Anonymous 

Please break the lookup table
Turn off Intraction between slicer
PBIX file - https://drive.google.com/file/d/17bzyqn66L_Tsc6a9ND7nR8fix7dmImuj/view?usp=drive_link 

Thanks

PijushRoy
Super User
Super User

Hi @Anonymous 

Unpivot the Table B, Copy and paste the code in Advance editor

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Tcu7DcAgDEXRVZBrCv9I8CyI/dfAfklBcy356K1Foko9608dm9mhb7bR7sX2sYCj2PjiAeZ6iTPWcXGAzcEK/tf7AA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"A ID" = _t, #"B ID" = _t, #"C ID" = _t, #"D ID" = _t, #" " = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"A ID", Int64.Type}, {"B ID", Int64.Type}, {"C ID", Int64.Type}, {"D ID", Int64.Type}, {" ", type text}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type",{" "}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Removed Columns", {}, "Attribute", "Value")
in
    #"Unpivoted Columns"

 

Create Relation

PijushRoy_0-1697527636048.png


Create visual

PijushRoy_1-1697527665176.png


PBIX File link - https://drive.google.com/file/d/17bzyqn66L_Tsc6a9ND7nR8fix7dmImuj/view?usp=sharing 


If solve, mark as RESOLVED. Appreaited your Like/Kudis

Anonymous
Not applicable

we need to add A ID ,B ID ,C ID ,D ID as separate slicers.

reference source  Re: Releationship - Microsoft Fabric Community

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors