Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
AndrewKent
Helper I
Helper I

Updating Files on OneDrive

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

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

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])

 

q2.PNG

 

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

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

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])

 

q2.PNG

 

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

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.