Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sunilkumarqv
Specialist II
Specialist II

Days count

Hi,

I need days bw months for example.

Date,             Days

31/03/2013   , 30

30/04/2013  , 31

31/05/2013  , 30

Need to automate this in script  like in Days Column.

1 Solution

Accepted Solutions
sujeetsingh
Master III
Master III

It is quite confusing

You can use interval function

Interval(Date1-Date2,'dd') as Days

View solution in original post

4 Replies
tresesco
MVP
MVP

Could you explain a bit more about the logic of output and your data?

sujeetsingh
Master III
Master III

It is quite confusing

You can use interval function

Interval(Date1-Date2,'dd') as Days

PrashantSangle

Hi,

Try like

Interval(date-previous(date),'D')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
amit_saini
Master III
Master III

Sunil,

Try this:

Interval(Today()-Date(Date#(Date_Field,'DD/MM/YYYY')),'dd')  as NoOfDays,

Thanks,
AS