Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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 (4)
0 Replies