Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Oguzhan
Contributor III
Contributor III

Dimension range Today minus 1 year in month Name

Hello,

I am currently trying to visualize a stacked bar char with the Date as a dimension. My problem is that I need the dimension to be restricted with today()  - 1 year in the date type Monthname(), my actual code seems to work but it doesn't show me the actual month. It only shows the completed months but I need also the actual month even though its not completed yet.

My Dimension is AW.CanonicalDate

=If(MonthName([AW.CanonicalDate]) >= MonthStart(AddYears(Today(), -1)) and MonthName([AW.CanonicalDate]) <= Monthstart(Today()) And MonthName([AW.CanonicalDate]) <= today(), MonthName([AW.CanonicalDate]))

Oguzhan_0-1610484171483.png

Can you pleas help me

Labels (5)
0 Replies