Hi PBR,
This below category expression creates an Empty(NULL) value
If(([Month_String]="${Months}") and ([Year]>=2005) and ([Year]<=2025), [Year], NULL)
To fix this, I'd suggest you create a calculated column (e.g. Display_Year)
Display_Year :::::: If(([Month_String]="${Months}") and ([Year]>=2005) and ([Year]<=2025),[Year], NULL)
Then use the below on the category axis
<[Display_Year] as [Year]>
Finally, add this to the expression to limit the data:
([Time]>=DocumentProperty("StartDate")) and ([Time]<=DocumentProperty("EndDate") and ([Display_Year] is not null))