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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
loganathan
Contributor III
Contributor III

Getting min and max date from Date which is in string format

Hi all,

 

Attached the sample data. I wanted to get max period = 2019-06 and min period=2019-01 in KPI. but unable to do this as the period fields is in string format anybody can advise on this.

 

thanks in advance

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

You can tell Qlik Sense to intepret your period as a date using date#() like this.

Date(Min(date#([period],'YYYY-MM')),'YYYY-MM')

Date(Max(date#([period],'YYYY-MM')),'YYYY-MM')

View solution in original post

1 Reply
Vegar
MVP
MVP

You can tell Qlik Sense to intepret your period as a date using date#() like this.

Date(Min(date#([period],'YYYY-MM')),'YYYY-MM')

Date(Max(date#([period],'YYYY-MM')),'YYYY-MM')