Forum Discussion
Anonymous
4 years agoNot applicable
Calculating Cumulative Returns from Daily Returns tables
I work in financial services and am new to Power BI (from Qlik). All of our data is in the form of a daily date column and daily returns for portfolios, benchmarks, stocks, etc. I would like to u...
Anonymous
4 years agoNot applicable
This is what I have now:
Cumm Total = var minDate = CALCULATE( MIN('Date'[Date]), ALLSELECTED('Date'))
var maxDate = MAX('Date'[Date])
return CALCULATE( SUM('MH-ALL'[Dividend Yield]), REMOVEFILTERS('Date'), 'Date'[Date] >= minDate && 'Date'[Date] <= maxDate)
Correct? That still gives me daily returns as before.
johnt75
Super User
4 years agoThat looks correct to me. You are using a column from the Date table on your visual, not a column from the MH-ALL table?
Are there any other filters being applied, or any other relationships which could be impacting on the calculation?