Search notes:

Power Query M formula language standard library: Table.ExpandTableColumn

Cross join

Table.ExpandTableColumn might be used to cross join two tables:
let
    tab_A = #table (
       { "col_1", "col_2"},
       {
       {      1 , "one"  },
       {      2 , "two"  },
       {      3 , "three"}}
    ),
    tab_B = #table (
       { "col_3"},
       {
       {     "A"},
       {     "B"}}
    ),
    tab_joined = Table.AddColumn(
       tab_A,
      "col_B",     // The name of the added column
       each tab_B  // The value of each record in the added column is the entire table B
    )
in
    Table.ExpandTableColumn(
        tab_joined,
       "col_B",
      {"col_3"}
    )
Github repository about-Power-Query-Formula-M, path: /standard-library/Table/ExpandTableColumn/cross-join.M
This piece of code produces the following output:

See also

The Power Query standard library

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1758209675, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Power-Query/M-formula/standard-library/Table/ExpandTableColumn/index(68): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78