Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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