Forum Discussion
Row Count for Annualized (rolling) returns
ak77 , based on what I got
Anualized =
var _sum = CALCULATE(SUM ( Client_Returns_Data[Returns]),DATESINPERIOD('Date Table'[_Date], [_Start_Date], -2,YEAR))
var _date= CALCULATE(Distinctcount ( Client_Returns_Data[retur_date]),DATESINPERIOD('Date Table'[_Date], [_Start_Date], -2,YEAR))
return
divide(_sum, _date)*365
or
CALCULATE(Averagex(Values('Date Table'), CALCULATE(SUM ( Client_Returns_Data[Returns]))),DATESINPERIOD('Date Table'[_Date], [_Start_Date], -2,YEAR))
Thanks amitchandak . wil try.
have a question: is there a way to check if data is avaialble for the full year before calculating this ?
CALCULATE(SUM ( Client_Returns_Data[Returns]))),DATESINPERIOD('Date Table'[_Date], [_Start_Date], -2,YEAR))
- ak772 years ago
Post Patron
Hi amitchandak ,
Need a help,for one client i have both montlhy and daily data , Monthly data till <2021 and Daily Data from 2021
for Effective date 31/12/2022 , i need to check row count as below for each year and then calculate if rowcounts are satisifed... how to get this.. can u please check and help
Year Rowcount 1 year- 2022 365 2 year 2022,2021 365+ 12 3 year 2022,2021,2020 365+ 12 +12