Forum Discussion

atasgao's avatar
atasgao
Icon for Helper II rankHelper II
4 years ago
Solved

Dynamic Title with month name and year

Hello,    So, I want to create a title with a condition where if the current date >= 15 of the month then show last month(ie Nov) else show the last to last month (October) and the year 2021.  ...
  • ryan_mayu's avatar
    ryan_mayu
    4 years ago

    atasgao 

    you can try this

    Measure = 
    VAR last=EDATE(today(),-1)
    VAR last2=EDATE(today(),-2)
    RETURN if(day(today())>=15,FORMAT(last,"mmmm")&" "&year(last),FORMAT(last2,"mmmm")&" "&year(last2))