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
Anonymous
Not applicable

Appending current and historical data

Hi all,

 

I have two datasets seperately where one contains the historical data and other contains only the latest 30days data.I want to append both the datasets in such a way that only the missing dates from the historical data gets picked from 30days data and gets appended to the historical data.For e.g., historical dataset contains data from 1-Jan-2019 to 14-Feb-2021 and the latest 30days dataset contains 21-jan-2021 to 21-Feb-2021 the expected final dataset should contain data from 1-Jan-2019 to 21-Feb-2021.

 

Thanks in advance,

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@Anonymous 

Do you mean 2 tables 1 with current data and 1 with historical data? If so, you can just append them in query editor. 

 

Paul Zheng _ Community Support Team

Payeras_BI
Super User
Super User

Hi @Anonymous ,

 

Is this a one-off? If so, in DAX you could make use of EXCEPT and UNION functions.

MISSING DATES = EXCEPT(LATEST30DAYS,HISTORICAL)
and then
UNION(HISTORICAL,MISSINGDATES)

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

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.