Sample Data
This table shows product names in the first column and their sales numbers in the second column. The first row contains the headers.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Sales |
| A2 | Apples |
| B2 | 100 |
| A3 | Bananas |
| B3 | 150 |
| A4 | Cherries |
| B4 | 200 |
This table shows product names in the first column and their sales numbers in the second column. The first row contains the headers.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Sales |
| A2 | Apples |
| B2 | 100 |
| A3 | Bananas |
| B3 | 150 |
| A4 | Cherries |
| B4 | 200 |
Table.PromoteHeaders(Source)Product Sales 1 Apples 100 2 Bananas 150 3 Cherries 200
header promotion do in Power BI's Power Query Editor?Table.PromoteHeaders function performs this action to make data easier to read and analyze.Table.PromoteHeaders, which takes a table as input.Table.PromoteHeaders(Source). Other options are invalid or incorrect syntax.let
Source = Table.FromRows({{"Name", "Age"}, {"Alice", 30}, {"Bob", 25}}),
Promoted = Table.PromoteHeaders(Source)
in
PromotedTable.PromoteHeaders but got an error saying "Expression.Error: The column 'Name' of the table wasn't found." What is the most likely cause?Table.Skip(Source, 2) to start from the third row.Table.PromoteHeaders to use the third row as headers.Pass the test and this pattern moves unknown