Forum Discussion
Upali63
2 years agoHelper II
Create New Column with Data from Same table
Hi Friends I have a data table as per sample below where the values in Amount Column alwayas show on accumulated basis as at end of each month. Now I want to create a new coloum subtracting curre...
Anonymous
2 years agoNot applicable
Hi Upali63 ,
Please try below steps:
1. below is my test tabel
2. create a new column with below dax formula
Column =
VAR cur_date = [Date]
VAR next_date =
EDATE ( cur_date, 1 )
VAR cur_acc = [Acc_description]
VAR cur_amt = [Amount]
VAR next_val =
CALCULATE (
MAX ( [Amount] ),
FILTER ( ALL ( 'Table' ), [Date] = next_date && [Acc_description] = cur_acc )
)
RETURN
IF ( ISBLANK ( next_val ), cur_amt, next_val - cur_amt )
Please refer the attached .pbix file
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Upali63
2 years agoHelper II
Thanks for you reply. Here I too have made a mistake
My desired result should be like below pls
Kindly help me