Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a Power BI dashboard that links to a "Date Table" .csv file that is located on my OneDrive for Business. I have recently added a few new columns to this file (updating the original file) however when I use "Edit Queries" within Power BI Desktop, it doesn't recognise that I have added additional columns.
The strange thing is that in the relationship view, the columns are there (albiet appended as the last columns instead of where they are positioned in the file) and if I save the file locally and link using Get Data>CSV (instead of Get Data>Web) then it works fine.
Can anyone support?
Andy
Solved! Go to Solution.
Hi @AndrewKent,
Based on my test, when we connect to the .CSV files stores in OneDrive for Business use web data source, the auto generated Power Query is:
= Csv.Document(Web.Contents("https://microsoft-my.sharepoint.com/personal/v-qiuyu_microsoft_com/Documents/test0117.csv"),[Delimit...",",Columns=3, Encoding=1252, QuoteStyle=QuoteStyle.None])
So if we add another columns in this .csv files, it will only display three columns. You can remove "Columns=3" from the formula, when we click refresh button, it will retrieve all columns. See: Csv.Document.
Best Regards,
Qiuyun Yu
Hi @AndrewKent,
Based on my test, when we connect to the .CSV files stores in OneDrive for Business use web data source, the auto generated Power Query is:
= Csv.Document(Web.Contents("https://microsoft-my.sharepoint.com/personal/v-qiuyu_microsoft_com/Documents/test0117.csv"),[Delimit...",",Columns=3, Encoding=1252, QuoteStyle=QuoteStyle.None])
So if we add another columns in this .csv files, it will only display three columns. You can remove "Columns=3" from the formula, when we click refresh button, it will retrieve all columns. See: Csv.Document.
Best Regards,
Qiuyun Yu
Excellent! I assumed as standard that you had to determine the volume of columns in the file as part of the code? Seems to work fine when I test them.
Thanks for your support.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |