Forum Discussion
Help with KEEPFILTERS within Calculation(Average)
- Anonymous9 years ago
I'm 97% sure you are making this more complicated than necessary. In as much as that I have been writing DAX for closer to 4 years and have no idea what KEEPFILTERS() even does :-P
Not to ask a crazy question, but what is wrong w/ :
AvgMeasureWeek = CALCULATE(AVERAGE('Table'[MaxPerDay]),FILTER(ALL('Date'),'Date'[WeekNum]=MAX('Date'[WeekNum])))
?
I'm 97% sure you are making this more complicated than necessary. In as much as that I have been writing DAX for closer to 4 years and have no idea what KEEPFILTERS() even does :-P
Not to ask a crazy question, but what is wrong w/ :
AvgMeasureWeek = CALCULATE(AVERAGE('Table'[MaxPerDay]),FILTER(ALL('Date'),'Date'[WeekNum]=MAX('Date'[WeekNum])))
?
Hey Scott-
You are right! Replacing Table with Date fixed the complexity I was working around.
Thanks for the direction! Helps a lot.
Doug