My date dimension contains only last day of each month, so I cannot count number of children in each month because it is always 1, and also same problem for year.
So, for given Date member, I will need to calculate number of days in that month and number of days in that year.