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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression .... Show me the date

Hi

I have an expression that I am putting in a text box, but it shows the number not the date.  The expression is :

=min(aggr(if(fabs(Publish_Date-date(vToday)) = vMinDate,Publish_Date), Publish_Date))

It currently outputs

The next publish date is : 42430.

How do I get it to show

The next publish date is : 01/03/2016



I have attached the example.



Many thanks




Phil

Labels (1)
1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

use this expression

='Next Publish Date '&Date(min(aggr(if(fabs(Publish_Date-date(vToday)) = vMinDate,Publish_Date), Publish_Date)),'DD/MM/YYYY')

let me know

View solution in original post

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

use this expression

='Next Publish Date '&Date(min(aggr(if(fabs(Publish_Date-date(vToday)) = vMinDate,Publish_Date), Publish_Date)),'DD/MM/YYYY')

let me know

sunny_talwar
MVP
MVP

Try this:

='Next Publish Date '& Date(min(aggr(if(fabs(Publish_Date-date(vToday)) = vMinDate,Publish_Date), Publish_Date)), 'DD/MM/YYYY')

Anonymous
Not applicable
Author

Perfect, Thanks