Forum Discussion
Getting the values as a column header in semantic mode
Hi, I am facing a issue while adding two new column from the source to the database, and after refreshing the semantic mode, I am geeting the values of those columns as a header , Attached is the pic of the power query steps
Identify the step in Power Query where you perform the pivot or unpivot transformation.
Move the step where you add the new columns so it is included at the same point as the pivot/unpivot operation, do not add them before or after unrelated transformations.
Ensure the new columns are created in the correct shape, so Power Query does not misinterpret their values as column headers on refresh.
Refresh and verify that column values are not being used as headers, and headers are consistent.
3 Replies
- Shubham_rai955Super User
Identify the step in Power Query where you perform the pivot or unpivot transformation.
Move the step where you add the new columns so it is included at the same point as the pivot/unpivot operation, do not add them before or after unrelated transformations.
Ensure the new columns are created in the correct shape, so Power Query does not misinterpret their values as column headers on refresh.
Refresh and verify that column values are not being used as headers, and headers are consistent.
- rohit1991Super User
Hi Ar_Sh
This issue happens when the Power Query step order changes after adding new columns. Power BI ends up treating the data values as headers instead of column names.
Could you please try below steps:
-
Open Power Query Editor.
-
In the Applied Steps pane, find the step named “Promoted Headers” or “Use First Row as Headers.”
-
Move this step to the bottom, after all other steps (like adding or unpivoting columns).
-
If the step is missing, go to Home >> Use First Row as Headers and apply it again.
-
Click Close & Apply, then refresh your report.
-
- Shubham_rai955Super User
Identify the step in Power Query where you perform the pivot or unpivot transformation.
Move the step where you add the new columns so it is included at the same point as the pivot/unpivot operation, do not add them before or after unrelated transformations.
Ensure the new columns are created in the correct shape, so Power Query does not misinterpret their values as column headers on refresh.
Refresh and verify that column values are not being used as headers, and headers are consistent.