Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I need to create a table C based on two different tables. Table A is having 10 column where table B is having 4 columns and there is no any matching key. Table A is a field parameter. Please assist?
Solved! Go to Solution.
@bgiri2430
duplicate table A then create a Custom column in
Table.AddColumn(#"Added Custom", "Table B", each TableB) give table name after that expand custom column and get you output.Thank You!!
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Hca5DQAhEATBXMbG4MfmOQhitfmncVKXVWaaCkoxyYNp8cw3L/zwyj/e+OWdPz7k/gM=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Product = _t, #"Product ID" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Product", type text}, {"Product ID", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Table B", each TableB),
#"Expanded Table B" = Table.ExpandTableColumn(#"Added Custom", "Table B", {"Category", "Category Id"}, {"Category", "Category Id"})
in
#"Expanded Table B"
@bgiri2430 I hope you getting my point.
As I mentioned table A is field parameter. When we are moving to power query mode the table won't be available into power query that's the issue
@bgiri2430 it is possible it's the End Result looks like the below Screen Shot.
@bgiri2430 Thank You!!
@bgiri2430
duplicate table A then create a Custom column in
Table.AddColumn(#"Added Custom", "Table B", each TableB) give table name after that expand custom column and get you output.Thank You!!
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Hca5DQAhEATBXMbG4MfmOQhitfmncVKXVWaaCkoxyYNp8cw3L/zwyj/e+OWdPz7k/gM=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Product = _t, #"Product ID" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Product", type text}, {"Product ID", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Table B", each TableB),
#"Expanded Table B" = Table.ExpandTableColumn(#"Added Custom", "Table B", {"Category", "Category Id"}, {"Category", "Category Id"})
in
#"Expanded Table B"
@bgiri2430 I hope you getting my point.
@bgiri2430 Please Can you Share your Table C Output After A & B Merge. Thank You!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
7 | |
6 | |
5 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |