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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

get the cursor's selection value

Hello every body

I have a cursor object and im selecting dates by expression, my problem is that the other fields are comparing with today's date not the selection date , so how do i get the value of the selection to compare with instead of today's date ?

Best Regards

1 Solution

Accepted Solutions
Not applicable
Author

In addition to the change mentioned by Ashwani Kumar - you don't have to split the date into Year/Month/Day. Date is internally represented as a number - you can compare whole date. In your case you probably have to use Floor() to ignore time portion of the date if exists

Lukasz

View solution in original post

4 Replies
Not applicable
Author

can you post the expersion used or the sample app for the same ...

Not applicable
Author

OK mr Nagaraj,

=Num(if (Num(Month([Date CA]))=Num(Month(Today())) and Num(year([Date CA]))=Num(year(Today())) and  Num(day([Date CA]))<=Num(day(today()))  ,([Date CA])))

Regards

ashwanin
Specialist
Specialist

You need to modify the expression.

here it is = today() in your expression,

Change it to the Field name of Your Selection Date field.

Not applicable
Author

In addition to the change mentioned by Ashwani Kumar - you don't have to split the date into Year/Month/Day. Date is internally represented as a number - you can compare whole date. In your case you probably have to use Floor() to ignore time portion of the date if exists

Lukasz