Forum Discussion
Daily File Update/Overwrite
- 2 years ago
Found a solution that worked for me....
- Get the dates from the new table.
- Create a list of those new dates.
- Use a filter. See https://www.ehansalytics.com/blog/2020/5/20/using-listcontains-to-filter-dimension-tables for an example. However, you will add a 'not' in front of the List.Contains() function to filter those records out.
- Append your new table to the existing data
- MODUser2 years agoFrequent Visitor
edhans Apologies for the late response. How does this change if the the goal is to do this within Power Query Editor?
- edhans2 years ago
Community Champion
My steps above were for Power Query. You need to provide us some examples so we can help.
How to get good help fast. Help us help you.
How To Ask A Technical Question If you Really Want An Answer
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.- MODUser2 years agoFrequent Visitor
I walked through the process with the following issues/concerns...
1. The daily file has dates that overlap the prior day's daily file and the main file...how do I keep/save the updated existing data file each next day in order to apply the next day's daily file updates? For example, main file is 1/1/2023 through 10/14/2023. Monday's daily file is 9/30/2023 - 10/15/2023 and Tuesday's daily file is 10/01/2023 - 10/16/2023. Using the List.Contains filter on the main file on Monday removes the data rows dated 9/30 - 10/14 from the main file, then through the append step adds Monday's daily file data rows 09/30/2023 - 10/15/2023 to the main file. On Tuesday, I need to apply the Tuesday daily file to the Monday appended main file now having data rows dated 1/1/2023 - 10/15/2023... and so on each day.
2. The main file has over 10 million rows and continues to grow with each new daily file, and the close/load is taking a long time to load..in 10 minutes only 150 rows loaded and the load was eventually halted. Enable Load is unchecked for the daily file table and the reference list and I was only loading the updated main file.