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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

6 months

I need an expression to just display the last 6 months data only on my staright table..I have a Month and year column

Labels (1)
13 Replies
raadwiptec
Creator II
Creator II
Author

yes i need with date ..can ypu give me the full expression for date..  as i dont want to hard code .. it should be dynamic..today - 6 months

{< Year = {$(=Year(Today()))}, Date=>}.

raadwiptec
Creator II
Creator II
Author

and secondly should date be one of the dimensions or expressions in the chart?

ramchalla
Creator II
Creator II

Hi Raadwiptec,

Try the below expression.

=SUM({<Date = {">=$(=Addmonths(Max(Date),-6))<=$(=Max(Date))"}>} Sales)

jmvilaplanap
Specialist
Specialist

Try with this:

  • {< Year = {$(=Year(Today()))}, Date={">=$(=addmonths(today(),-6))"}>}

And not is necesary that the day (or date) be on the chart (as expression or dimension)