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
karlosdsouza
Helper II
Helper II

Append and update data

I have a scenerio where i get updated list of Products, owner, version, Product Manager etc for the month. The list contains only the active products. I have to build analytics based both active and inactive products and have to consider the most recent entries. i.e. suppose in Apr-18, there is a product 'A' which has version 1.01 and in July the Product A has version updated as version 1.04 and also contains a product AA2. I want to append the Apr-18 data in such a manner so that new line items corresponding to product AA2 gets added and version is updated for Product A as 1.04. How can i do it ?

1 ACCEPTED SOLUTION

@karlosdsouza,

 

You may try Append Queries (Table.Combine) in Query Editor and refer to the Power Query solution in this post.

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

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey,

 

basically this scenario you are looking for is currently not supported by Power BI, as soon as dataflows become general available, they maybe will provide a solution. If you are wondering what this dataflows thing is this webinar might be of interest to you: https://powerbi.microsoft.com/en-us/blog/webinar-10-23-advanced-data-prep-with-power-bi-dataflows-fo...

 

For now you have to import each list, every time you receive a new list, this means the number of lists is growing, updating the version number of product A can become somewhat complicated, if this does not mean;

  • keep the latest version of product A and purge all previous version

Besides that you have to develop some more sophisticated M queries, e.g. updating previous reords of product A with a validuntil date, as this is quite common for "Slowly Changing Dimension - type 2" dimension modeling.

 

Maybe you might consider to create sample data, like list1, list2 ... upload this data to onedrive and dropbox and share the link. And it also very helpful to create an Excel file that contains your expected result, where the result reflects different steps, for processing list1, and processing list2 (meaning list1 and list2), ...

 

Regards,

Tom

  



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks @TomMartens

 

or i could append data so that i have recent data on top and old month tables at bottom. Then i can simply remove duplicates. Since remove duplicate works from bottom to top, i will have older data removed and kept version updated version 1.03 and new products AA2 as it will not be duplicate.

@karlosdsouza,

 

You may try Append Queries (Table.Combine) in Query Editor and refer to the Power Query solution in this post.

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

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.