Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have recently "inherited" a Power BI report at work and I have been tasked with adding a new column to the report in Power BI (it has already been added to the excel source). I get an error message when I try to refresh the Power BI (column 47 wasn't found).
I believe the Power BI I inherited already had some expression error because when I look at the applied steps it says "Expression Error: The Column 47 of the report wasn't found". When I looked at the excel source in more detail I noticed that the heading is blan but there is some data in the column. I then tried to add the new column in column 48 but I got the same error message.
I would really appreciate if you could help me with this issue as I am fairly new to Power Bi. I tried to find in the Advanced Editor the number of columns (this is how I have added new columns in the past) but there is no specific reference to columns in the code.
Thanks in advance!
Solved! Go to Solution.
Hello @Turquesa ,
in power query, check where the error is coming from, in which step, the missing column should be referenced in a step, check if it is referenced in change type.
Proud to be a Super User! | |
Hi @Idrissshatila! Thanks for your quick reply.
Yes, I can see the following applied steps looking at an earlier version of the Power BI (before I tried to add the new column).
Changed Type: Expression Error. The column 47 of the table wasn't found
= Table.TransfromColumnTypes......................................("Column47,type any), ("Column48", type any)
Renamed Column: Table.RenameColumns(#"Changed Type",{{"Column47", "Correction number"}})
Removed Columns: Table.RemoveColumns(#"Renamed Columns",{"Column48"})
How can I fix this and add new columns?
remove the column 47 from every step in the applied steps
Proud to be a Super User! | |
you can either remove the steps and recreate them again, or adjust the m code in the advanced editor to and remove the everything related to the missing row from this
= Table.TransfromColumnTypes......................................("Column47,type any), ("Column48", type any)
Renamed Column: Table.RenameColumns(#"Changed Type",{{"Column47", "Correction number"}})
Removed Columns: Table.RemoveColumns(#"Renamed Columns",{"Column48"})
Proud to be a Super User! | |
Hello @Turquesa ,
in power query, check where the error is coming from, in which step, the missing column should be referenced in a step, check if it is referenced in change type.
Proud to be a Super User! | |
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
91 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |