cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rachel_zzzz
Frequent Visitor

Create new table and insert values automatically based on condition

Hi all, not sure if  this is can be done in Power BI. Hope someone can give me some suggestions: 

I have a table below where the Current_Debt and Old_Debt are changed time to time, this table was refreshed every monday in my powerBI desktop. 

 

Account_numberCurrent_DebtOld_debt
1001012
100228.34234
1003296.70
10046546
100508
1006779
100700

 

Also, I want to create a table called weekly_change,  so when the table above refreshes, it will automatilcly sum the current_debt where current_debt is not 0 and also count of account number, and sum of Old_debt, then insert the table weekly_change, the date value would be the time when we refresh the table.

Weekly_change 

DateAccount_numberCurrent_debt_sumOld_debt_sum
30/04/20213979.04246
3/05/2021   
    

 Would it be possible to do that in power query? 

 

Thanks so much 

2 REPLIES 2
yingyinr
Community Support
Community Support

Hi @Rachel_zzzz ,

Will the weekly data be saved in the table or will the data in the table be directly updated when a new date is reached? In addition, is there any date column to indicate which date the data belongs to? What is the calculation logic of the table you want to get in the end? Is it a summary value(0+28.34+296.7+654+...)?

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User IV
Super User IV

@Rachel_zzzz , base on what I got. See if these Dax append method can help

 

https://blog.crossjoin.co.uk/2020/04/13/keep-the-existing-data-in-your-power-bi-dataset-and-add-new-...
https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors