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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ksnnidhi
Regular Visitor

Automate Append Data in A table

I have requirement to weekly append dataset in a table and keep data to shown weekly basis report. My data set not have any date column to identify if data is week 1 or week 2 . Right now I am doing manually append and updating week .

 

Is this possible to schdule automate append with new data set and date get added for records of current week.

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @ksnnidhi ;

Is your problem solved?  If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


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

v-yalanwu-msft
Community Support
Community Support

Hi, @ksnnidhi ;

If you manually update every week, you only refresh in power bi .

AilsaTao_12-1660810038660.png

Or 

AilsaTao_13-1660810077738.png

Refresh a dataset created from a Power BI Desktop file - local - Power BI | Microsoft Docs
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jbwtp
Memorable Member
Memorable Member

Hi @ksnnidhi,

 

In which format/source your data is stored? In this SQL tables, or csv/excel?

For anything stored in files (either locally or on OneDrive/Sharepoint) you should be able to retrieve a creation or modification date of the file and use it to resolve the week to which the data belong. Let me know if you need more detail/example for this soluiton.

 

Kind regards,

John

yes please provide me solution , My data is in excel . I want every week data get appended in BI table from excel file.

Hi @ksnnidhi,

 

for Excel files it would be something like this (conceptually, as I removed folder and file names):

let
    Source = Folder.Files("PathtoMyFolder"),
    #"Filtered Rows" = Table.SelectRows(Source, each ([Name] = "MyFileName.xlsx")),
    #"ImportBinary" = #"Filtered Rows"{[#"Folder Path"="PathtoMyFolder",Name="MyFileName.xlsx"]}[Content],
    #"Imported Excel Workbook" = Excel.Workbook(#"ImportBinary"),
    #"DataFromTable" = #"Imported Excel Workbook"{[Item="Data",Kind="Table"]}[Data],
    #"Added Custom" = Table.AddColumn(#"DataFromTable", "Custom", each #"Filtered Rows"{[#"Folder Path"="PathtoMyFolder",Name="MyFileName.xlsx"]}[Date created])
in
    #"Added Custom"

If you import multiple files (using Combine button), just change the query to not removing "Created Date" column (it ususlly does it before expanding the results leaving only "Name" column).

 

Kind regrads,

John 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors