Forum Discussion
Annual Returns
- 8 years ago
Hi Anonymous
HOw abou this one?
YTD_Zubair = VAR Previous_YEAR_Closing = CALCULATE ( MAX ( EMCD[Date] ), EMCD[Date] < EARLIER ( EMCD[Date] ) && YEAR ( EMCD[Date] ) = YEAR ( EARLIER ( EMCD[Date] ) ) - 1 ) RETURN DIVIDE ( EMCD[Absalon EM Corporate Debt SICAV NAV], CALCULATE ( SUM ( EMCD[Absalon EM Corporate Debt SICAV NAV] ), EMCD[Date] = Previous_YEAR_Closing ) ) - 1
Sorry the last one didn't seem to work hopefully this does https://1drv.ms/x/s!AiRs1BCuVWhM6EfOsWkw52AbDaq-
Hi Anonymous
This is an Excel file.
The problem (i believe) is in your PBIX file (the image you shared) which uses mutliple tables. I was looking for that file.
- Anonymous8 years agoNot applicable
Here is the pbix file https://1drv.ms/u/s!AiRs1BCuVWhM6ElX82MVsTRvdPr5
- Zubair_Muhammad8 years agoCommunity Champion
Hi Anonymous
Please see the file attached here
The earliest month of 2015 is empty so I filtered the year 2015 out
YTD_Zub = VAR Previous_Date = CALCULATE ( MIN ( EMCD[Date] ), EMCD[Date] < EARLIER ( EMCD[Date] ) && YEAR ( EMCD[Date] ) = YEAR ( EARLIER ( EMCD[Date] ) ) ) RETURN DIVIDE ( EMCD[Absalon EM Corporate Debt SICAV NAV], CALCULATE ( SUM ( EMCD[Absalon EM Corporate Debt SICAV NAV] ), EMCD[Date] = Previous_Date ) ) - 1- Anonymous8 years agoNot applicable
Thanks, that is very helpful. The answer is though not quite right because the YTD return for 2016 should be 16.41%. That is calculated by taking the nav on 30/12/2016 (the closing price for 2016) 11191.0 dividing it by the nav on 31/12/2015 9613.7 (the closing price for 2015) minus 1 . So I am looking for a variable that calculates the nav at the end of a year and divide that number by the nav at the end of previous year -1