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
castanheiro1982
Frequent Visitor

Add a new file to Source.Files with 4 additional columns previous files don't have

Hi team,

 

I am having trouble with this:

I have 13 CSV files as my power BI data source, growing on a weekly basis, but now i have 4 additional columns. How do i tell power BI that he should have let's say these 4 columns to the full dataset and populate the previous files with let's say null values.

 

thanks,

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @castanheiro1982

 

The best option for this is to change the file that you use as your transformation file, that way when you append the files using the custom function the columns will be filled with null.

 

You just need to edit the step Navigation on the Sample File:

 

  • Go to the Sample file
  • Source
  • Check the number of the line of the new file you want to use as new default file
  • On the navigation step change the 0 by the line number -1 that you took on the previous point
    • If line is 35 you should place 34

= Source{0}[Content]

 

    • Go to the Transform Sample file and make the necessary changes.
    • On the query file you should have the previous file with null on the additional columns

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @castanheiro1982

 

The best option for this is to change the file that you use as your transformation file, that way when you append the files using the custom function the columns will be filled with null.

 

You just need to edit the step Navigation on the Sample File:

 

  • Go to the Sample file
  • Source
  • Check the number of the line of the new file you want to use as new default file
  • On the navigation step change the 0 by the line number -1 that you took on the previous point
    • If line is 35 you should place 34

= Source{0}[Content]

 

    • Go to the Transform Sample file and make the necessary changes.
    • On the query file you should have the previous file with null on the additional columns

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you Miguel!

 

that did the job very easily and now I learned a new option 🙂

 

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.