Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME 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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.

Regards,

Jagan.