Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikconsultant
Creator III
Creator III

Select one value in the List-Box show 30 values in the chart.

Hi,

I want that if I select one value in the List-Box (for example Date) that are show the 10 dates before the value and 20 values after in the chart.

Any idea how i can do that?

Example:

Choosen date ist the 20.01.2012.

The chart shows the sales from 10.01.2012 to 09.02.2012.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Use below expression in your chart.

     sum({<Date = {">=$(=date(max(Date)-10))<=$(=date(max(Date)+20))"}>}Sales)

Regards,

Kaushik Solanki    

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Use below expression in your chart.

     sum({<Date = {">=$(=date(max(Date)-10))<=$(=date(max(Date)+20))"}>}Sales)

Regards,

Kaushik Solanki    

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sushil353
Master II
Master II

Hi,

Please find the attached sample

HTH

Sushil

qlikconsultant
Creator III
Creator III
Author

How must I change the expression if  the selection is no date format?