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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
shamilka
Frequent Visitor

Need to add a history table for each data refresh

Hi,

 

I need to add a history table with a data refresh date column. So for each data refresh, the refresh date for each row has to be added in a refresh date column. There should not be any duplicates if the coped row is already there. Also, I need to count the number of open days by getting todays date into consideration well as the refresh date. Please check the input as well as desired output table below. 

 

It would be ideal if I can copy data to a new table since I would be able to have a table for current data as well as history data.

 

Input

StatusPNSNBatch noQTYP
InstallABC430011141XXA
RemoveABC320011151XXB

 

Output 

 

StatusPNSNBatch noQTYPRefresh dateOpen days
InstallABC430011141XXA17/04/20240
RemoveABC320011151XXB10/04/20247
1 REPLY 1
dufoq3
Super User
Super User

Hi @shamilka, you can't store current date but you can do that if your source file contains such date (in filename or body) - it doesn't matter. It can be done in power query but to be honest it is not ideal.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors