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

Choose 2 Dates to get the data.

Hello Everyone,

I have two variables vThisMonth = 06/15/2014;

and vLastSixmonth = Addmonths('$(vThisMonth)',-6);

I want to create a chart where expression shows max(Score) between there two variables in other words between last 6 months, I've tried :

     max({<Date = {">=$(vThisMonth)<=$(vLastSixmonth)"}>}Score)

However, the data is not displayed correctly, any ideas?

Thanks in advance.

1 Solution

Accepted Solutions
vgutkovsky
Master II
Master II

Oh, wait a second, just noticed that your condition is reversed Flip your <= and >= signs.

Regards,

Vlad

View solution in original post

3 Replies
vgutkovsky
Master II
Master II

Do you mean your vThisMonth variable is literally hardcoded to "=06/15/2014"? If so, QV doesn't understand that that's a date. Try =date#('06/15/2014')

Regards,

Vlad

Not applicable
Author

Thanks Vlad,

no, vThisMonth is being dynamically created by resident loading of max(date) from one of the table.

vgutkovsky
Master II
Master II

Oh, wait a second, just noticed that your condition is reversed Flip your <= and >= signs.

Regards,

Vlad