I have to show YTD with condition like if month selected is complete show YTD, if it is not complete(for ex: July 25,2014) show till June data.
like monthend(max(Calendermonthyear)=max(calendermonthyear), max(calendermonthyear)
monthend(max(Calendermonthyear)>max(calendermonthyear),max(calendermonthyear)-1
right now Iam using this to find YTD
![Capture.PNG](/legacyfs/online/63509_Capture.PNG)
How do I modify expression to show above condition?