Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
lotitolo
Contributor III
Contributor III

two-month aggregation dynamically

Good morning, everyone,

I am looking to create a new dimension date where the month of August will become the month of July.

The idea is to make an aggregation of these two months dynamically.

I already created a script via Tableau some time ago, but I don't really know how to do it under Qlik Sense. I looked at the customs calendar without really finding an answer.

Here is my old script generated under Tableau if it helps you:

(if MONTH([Date]) = 7 then DATEADD('month',1,[Date]) else[Date] end)

ELSE[Date]

END

Thank you very much,Smiley Happy

LotitoLo

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try

if (MONTH([Date]) = 7 , addmonths('Date',1) ,
[Date])

View solution in original post

2 Replies
Vegar
MVP
MVP

Try

if (MONTH([Date]) = 7 , addmonths('Date',1) ,
[Date])

lotitolo
Contributor III
Contributor III
Author

It works perfectly, I'll just fix the layout:) thank you very much!
Finally the syntax is not so different as on Tableau