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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
laitung1991
Frequent Visitor

transfer columns to row from 2 table

I have 2 table : table1, table 2 and i want to take columns of table1 transfer row table2 and have new table3, i have picture for example:

Capture.PNG

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

Hi @laitung1991 

 

Did you try the append queries?

let
    Source = Table.Combine({#"Table (2)", Table}),
    #"Replaced Value" = Table.ReplaceValue(Source,null,"Y/N",Replacer.ReplaceValue,{"Status"})
in
    #"Replaced Value"

0001.PNG

 

Community Support Team _ Dina Ye
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

6 REPLIES 6
v-diye-msft
Community Support
Community Support

Hi @laitung1991 

 

Did you try the append queries?

let
    Source = Table.Combine({#"Table (2)", Table}),
    #"Replaced Value" = Table.ReplaceValue(Source,null,"Y/N",Replacer.ReplaceValue,{"Status"})
in
    #"Replaced Value"

0001.PNG

 

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

thanks for your help

Anonymous
Not applicable

2 options...

 

you can use 'Merge Queries' in Edit Queries to join the 2 data sources.

Or

create a relationship between the 2 tables and then build a table/matrix visual using data from both tables.

i want to create new table not  build table/matrix visual, i tried Merge Queries but when join not enough record  for example when when join table 2 from table 1 have one record not two

thank you for your help

Anonymous
Not applicable

So, Edit Queries is the way forward.

 

Are you able to share a dashboard? or some screen shots?

i can't share file dashboard because my company don' want 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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