The filter is all 2013-2015, but my MaxMonth shows the max month of data no matter the filter:
MaxMth = CALCULATE(MAX(PeriodDimension[periode]);ALL(PeriodDimension))
MaxMth is a measure I would like to use to switch between the Year and the YearByYear column. So depending on MaxMth I will use YearByYear or Year in an IF sentence.