Hi,
I am allocating some targets from month level down to day, but i only want to allocate it to Working days... i have the following query, but when the monthly target is actually posted on a non-working day (i.e. 1st Feb 2014) it seems to break.. i.e. nothing is displayed at all..
CALCULATE(
SUMX (
VALUES(Dates[Date]),
CALCULATE (
CALCULATE (
SUM ( SalesTargets[Target] ),
ALL ( Dates[Date] ),
SUMMARIZE ( Dates, Dates[MonthName])
)
/ CALCULATE (
DISTINCTCOUNT ( Dates[Date] ),
ALL ( Dates[Date] ),
Dates[IsWorkingDay] = 1,
SUMMARIZE ( Dates, Dates[MonthName] )
)
)
)
,Dates[IsWorkingDay]=1
)
i can't figure out why, and without knowing why... i can't fix it
thanks
I am allocating some targets from month level down to day, but i only want to allocate it to Working days... i have the following query, but when the monthly target is actually posted on a non-working day (i.e. 1st Feb 2014) it seems to break.. i.e. nothing is displayed at all..
CALCULATE(
SUMX (
VALUES(Dates[Date]),
CALCULATE (
CALCULATE (
SUM ( SalesTargets[Target] ),
ALL ( Dates[Date] ),
SUMMARIZE ( Dates, Dates[MonthName])
)
/ CALCULATE (
DISTINCTCOUNT ( Dates[Date] ),
ALL ( Dates[Date] ),
Dates[IsWorkingDay] = 1,
SUMMARIZE ( Dates, Dates[MonthName] )
)
)
)
,Dates[IsWorkingDay]=1
)
i can't figure out why, and without knowing why... i can't fix it
thanks