Forum Discussion
Anonymous
9 years agoNot applicable
Use calculate to work out previous years instance
Hi, I am wanting to use a variance against the previous year but I am unable to do same period last year as I am going of a custom column called instance rather an a date. The instance is the...
Anonymous
9 years agoNot applicable
Not able to use dates unfortunatly can only use the instance
Abduvali
Skilled Sharer
9 years agoand what does instance represent in your report?
- Anonymous9 years agoNot applicable
The instance of the day in the month so for example the first monday would be 1 and the second Monday 2
thanks
- Anonymous9 years agoNot applicable
Maybe not the most elegant solution but this should give you something you could use.
Define a new measure for:
Sales same instance last year =
CALCULATE (
SUM ( Sales[Amount] );
VALUES ( 'Calendar'[instance number] );
VALUES ( 'Calendar'[Month] );
VALUES ( 'Calendar'[Weekday] );
FILTER ( ALL ( 'Calendar' ); 'Calendar'[Year] = MIN ( 'Calendar'[Year] ) - 1 )
)
BR,Magnus