Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
RealEstate2018
Contributor II
Contributor II

How to restrict the date values

Hi team,

Can someone please help restrict my data value so that my bar chart doesn't display data before today's date?  I want to display all data from today's date until the next 5 years.  Shown below is the expression I have put into the script.  Do I need to modify it or put something into the dimension limits?  It works just fine however, it's displaying one location that has an expiration date of 9/14/17 (well before today's date)

 

only({<Year = {"<=$(=max(year(today())) + 5)"}>} Expiration)

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

You need to define both a min year and a max year.

 

only({<Year = {">=$(=year(today()))<=$(=year(today()) + 5)"}>} Expiration)

You don't need the max() as you only have one value inside it, today(). 

View solution in original post

1 Reply
Vegar
MVP
MVP

You need to define both a min year and a max year.

 

only({<Year = {">=$(=year(today()))<=$(=year(today()) + 5)"}>} Expiration)

You don't need the max() as you only have one value inside it, today().