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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date selection- from and to date

Hi All,

I have a date column TransDate.

How can I created FromDate and Todate from TransDate?

Thanks in advance.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attached file for solution.

Regards,

Jagan.

View solution in original post

3 Replies
arulsettu
Master III
Master III

try this

FromDate = min(TransDate)

Todate = max(TransDate)

Anonymous
Not applicable
Author

You need to load two more data island columns in your script other wise once you will do selection in TransDate it assign same value in FromDate and ToDate.


so do a resident load from the table where TransDate column is loaded


load

distinct (TransDate) as   FromDate


resident table(abc);


Load

distinct (TransDate) as   ToDate


resident table(abc);


Then use these fields for selection (calender/Slider) and store the value into variables


and use those variables in your expression.


Hope this help!!


jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attached file for solution.

Regards,

Jagan.