Forum Discussion
setis
6 years agoPost Partisan
Ignoring a filter
Dear experts, I am trying to create a measure to show me the sales amount per month for all years except 2009 (in my real project will be "current year" but for this excercise this can work) My ...
Anonymous
6 years agoNot applicable
try the above - failing that, is this what you're looking for?
setis
6 years agoPost Partisan
Dear amitchandak and Anonymous ,
Thanks a lot for your answers. The solution proposed by amitchandak works perfectly in the example, but I must be doing something wrong in my real project, since I'm still getting blanks.
This is my measure:
# Cases Forecast-NotCY =
VAR Year_selected =
SELECTEDVALUE ( 'Date'[Calendar Year] )
RETURN
CALCULATE (
AVERAGEX (
VALUES ( 'Date'[Date] );
CALCULATE (
[# Cases];
ALL ( 'Date'[Calendar Year] );
NOT ( 'Date'[Calendar Year] = Year_selected )
)
)
)My #Cases measure is just a DISTINTCOUNT for Cases ID.
would you be able to see why this isn't working for me here?