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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -