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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

A table which has values from table1 and all values from table2 which are not related.

I have two tables as below:
Cust

custosuppo
7a
7b
8a


Supp

Suppo
a
b
c


I want to table/matrix visual as follows:
t1 = 

custosuppo
7a
7b
8a


t2 = 

custosuppo
7c
8b
8c

 

both tables are related by suppo column. How do i create t2 visual?

1 REPLY 1
lbendlin
Super User
Super User

In Power Query this would be the approach

t2  query:

 

let
    Source = Table.SelectColumns(t1,{"custo"}),
    #"Removed Duplicates" = Table.Distinct(Source),
    #"Added Custom" = Table.AddColumn(#"Removed Duplicates", "Custom", each Supp),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Suppo"}, {"Suppo"}),
    #"Merged Queries" = Table.NestedJoin(#"Expanded Custom", {"custo", "Suppo"}, t1, {"custo", "suppo"}, "t1", JoinKind.LeftAnti),
    #"Removed Other Columns" = Table.SelectColumns(#"Merged Queries",{"custo", "Suppo"})
in
    #"Removed Other Columns"

 

in DAX it's easier as you can use EXCEPT

 

t2_DAX = except(crossjoin(values(t1[custo]),values(Supp[Suppo])),t1)

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors