Forum Discussion
Anonymous
4 years agoNot applicable
Previous computation on Dax
Hi guys, just wanna ask on how can I compute from previous which will be based multiple column. See my expected out below and the computation that I did on Excel Thank you so much!
- 4 years ago
Anonymous
Here is a sample file with the solution https://www.dropbox.com/t/7HLKwsbFecvw2MlKExisting = VAR CurrentDate = Data[Month] VAR CurrentProgramTable = CALCULATETABLE ( Data, ALLEXCEPT ( Data, Data[Program] ) ) VAR TableOnAndBefore = FILTER ( CurrentProgramTable, Data[Month] <= CurrentDate ) RETURN SUMX ( TableOnAndBefore, Data[New] - Data[Removed] )
tamerj1
Community Champion
4 years agoAnonymous
Here is a sample file with the solution https://www.dropbox.com/t/7HLKwsbFecvw2MlK
Existing =
VAR CurrentDate = Data[Month]
VAR CurrentProgramTable =
CALCULATETABLE ( Data, ALLEXCEPT ( Data, Data[Program] ) )
VAR TableOnAndBefore =
FILTER ( CurrentProgramTable, Data[Month] <= CurrentDate )
RETURN
SUMX ( TableOnAndBefore, Data[New] - Data[Removed] )- Anonymous4 years agoNot applicable
Thank you! This works, but can you explain to me the formula? Also what if I add more columns within it what should I change?