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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
delbooth
Contributor II
Contributor II

Set analysis and date

Hi.

i am using the below as part of a set analysis expression.

num(EntMonth) =month(Today())

  The Entmonth is Jan to Dec field but I want to evaluate it as a number in order to be able to get a graph for the last three months of data by using month(today())-1,and month(today())-2

The set analysis does not seem to work

Thanks

Del

3 Replies
arulsettu
Master III
Master III

try in set

num(EntMonth) ={num(month(Today()))}

YoussefBelloum
Champion
Champion

Hi,

you can rollback on months using the original format of the field, using something like this:

EntMonth={'$(=Date(Date#(month(Today())-1,'MM'),'MMM)'}

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Please post your entire expression. Your syntax looks incorrect.

-Rob