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
koukou-cell
New Member

fill null data from an other table

hi ,

i need your help as soon as possible please.

 

i have two tables ,the first one has a missed data. the colonnes name are  ( facturenum , dates, type) , some data in the colone type are null. 

the second one contain the missed data , it has attributes as ( fact,type)

i need to fill the missed data in table one from the first table.

 

i tried all merge type , with no result ,

 

any solution please

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

Hi @koukou-cell ,

According to your description, here's my sample and solution. Please copy-paste the two queries in two blank quries.

Table (2):

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclSK1YGRTkikMxLpAiNjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}})
in
    #"Changed Type"

 

Table:

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclSK1YlWAhPOCKarUmwsAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Column1"}, #"Table (2)", {"Column1"}, "Table (2)", JoinKind.FullOuter),
    #"Expanded Table (2)" = Table.ExpandTableColumn(#"Merged Queries", "Table (2)", {"Column1"}, {"Table (2).Column1"}),
    #"Added Custom" = Table.AddColumn(#"Expanded Table (2)", "Custom", each if [Column1]=null then [#"Table (2).Column1"] else[Column1]),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Table (2).Column1", "Column1"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Columns"),
    #"Removed Blank Rows" = Table.SelectRows(#"Removed Duplicates", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
in
    #"Removed Blank Rows"

 

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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-yanjiang-msft
Community Support
Community Support

Hi @koukou-cell ,

According to your description, here's my sample and solution. Please copy-paste the two queries in two blank quries.

Table (2):

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclSK1YGRTkikMxLpAiNjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}})
in
    #"Changed Type"

 

Table:

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclSK1YlWAhPOCKarUmwsAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Column1"}, #"Table (2)", {"Column1"}, "Table (2)", JoinKind.FullOuter),
    #"Expanded Table (2)" = Table.ExpandTableColumn(#"Merged Queries", "Table (2)", {"Column1"}, {"Table (2).Column1"}),
    #"Added Custom" = Table.AddColumn(#"Expanded Table (2)", "Custom", each if [Column1]=null then [#"Table (2).Column1"] else[Column1]),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Table (2).Column1", "Column1"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Columns"),
    #"Removed Blank Rows" = Table.SelectRows(#"Removed Duplicates", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
in
    #"Removed Blank Rows"

 

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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