{"id":7,"date":"2016-06-29T11:33:24","date_gmt":"2016-06-29T11:33:24","guid":{"rendered":"http:\/\/coding.agust.org\/?p=7"},"modified":"2016-11-25T15:24:23","modified_gmt":"2016-11-25T15:24:23","slug":"power-query-m-union-between-two-tables","status":"publish","type":"post","link":"https:\/\/coding.agust.org\/index.php\/2016\/06\/29\/power-query-m-union-between-two-tables\/","title":{"rendered":"Power Query (M) union between two tables"},"content":{"rendered":"<p>I have recently been discovering the strength of Power Query (nick name M). It is a programming language that Microsoft has been introducing into Excel Power Pivot, Power BI and more.<\/p>\n<p>Having a full blown programming language makes these tools all the more appealing. Here is a test example on how to union two tables together:<br \/>\n&#8212;<br \/>\nlet<br \/>\nTableA = #table({&#8220;Name&#8221;, &#8220;Age&#8221;}, {{&#8220;John&#8221;,23},{&#8220;Mary&#8221;,25}}),<br \/>\nTableB = #table({&#8220;Name&#8221;, &#8220;Age&#8221;}, {{&#8220;Smith&#8221;,33},{&#8220;Ulrich&#8221;,35}}),<\/p>\n<p>TableC = Table.Combine({TableA, TableB})<br \/>\nin<br \/>\nTableC<br \/>\n&#8212;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have recently been discovering the strength of Power Query (nick name M). It is a programming language that Microsoft has been introducing into Excel Power Pivot, Power BI and more. Having a full blown programming language makes these tools all the more appealing. Here is a test example on how to union two tables &hellip; <a href=\"https:\/\/coding.agust.org\/index.php\/2016\/06\/29\/power-query-m-union-between-two-tables\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Power Query (M) union between two tables&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-power-query"],"_links":{"self":[{"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":1,"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coding.agust.org\/index.php\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}