sql server - MDX YTD and MTD function have different start date -
i'm new mdx. need change existing ssrs report on ssas cube showing values in mtd , ytd.
my problem both functions have different start date january in case starting date of mtd function correct
at moment mdx code looks this:
with
member [value] sum (ytd(), [measure].[value])
member [value] sum (mtd(), [measure].[value])
my problem mtd starts @ 2016-01-01 , ytd field start @ 2016-01-04 , want ytd field starts in 2016-01-01
in date dimension have calenderyear , periodyear. looks ytd function uses periodyear, report i'm building need calenderyear.
can me mdx statement, same ytd function, starts @ first day of calenderyear?
Comments
Post a Comment