Forum Discussion
Data Column Refresh After Unpivot
- 8 years ago
Hi Chanleakna123,
Since you have steps to transform Excel sheet columns, go to Query Editor and click Advanced Editor, you will see the Power Query explicitly mention column names. Whatever the old column is deleted or new column added, you need to modify the column names used in Power Query ( it can simply achieved by modify applied steps which you already done). I'm afraid this is unavoidable.
Best Regards,
Qiuyun Yu
Hi Chanleakna123,
If you modify the Excel data, you can click refresh button in desktop to get updated data. But if you modify Excel structure like add column, change column, it will not be reflected in Power BI report.
In your scenario, it seems there are some data structure changed in Excel file. Please open Query Editor in Power BI desktop, then check which step has issue when refresh, please correct it.
Best Regards,
Qiuyun Yu
v-qiuyu-msft hi ,
I deleted and added new column in excel file , refresh and then refresh in BI, BI pops up warning message as attached.
- Chanleakna1238 years agoPost Prodigy
HI everyone,
i'm new here. i'm not sure whether we can fix this. I used excel data which has a lots of columns in Date Columns , I import into Power BI and then choose Unpivot other columns to be in a row, It works good. but after that i turn to Excel file and delete one of the date columns and then refresh in PBI , it said the Column Number 15 not found. Is there any way i can settle this ? Delete and add data in Excel and refresh the data in PBI to be okay.
seems like i can;t remove the data in Excel only to add more.
Thanks with Best Regards,Chanleakna Hang
- v-qiuyu-msft8 years agoCommunity Support
Hi Chanleakna123,
Have you opened Query Editor to check each step?
As the column is deleted in source Excel file, you need to modify Power Query to get data. Please check each step from Source step listed in Applied Steps to ensure each step works fine.
Best Regards,
Qiuyun Yu- Chanleakna1238 years agoPost Prodigy
v-qiuyu-msft hi Dear ,
I had fixed this by going to Query Editor > ( insert )Step between Promote Header and unpivot > refresh data > new data from excel comes in >Unpivot the columns again. Since i always have new columns added everyday. Do i need to repeat this everyday? Do we have any best practices on this ?
I'm sorry if i'm wrong , since i'm new here.- v-qiuyu-msft8 years agoCommunity Support
Hi Chanleakna123,
Since you have steps to transform Excel sheet columns, go to Query Editor and click Advanced Editor, you will see the Power Query explicitly mention column names. Whatever the old column is deleted or new column added, you need to modify the column names used in Power Query ( it can simply achieved by modify applied steps which you already done). I'm afraid this is unavoidable.
Best Regards,
Qiuyun Yu