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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate number of days

Hello,

I have this table

ID Grade date
315 5 01/06/2007
6 01/05/2009
8 01/03/2010
9 01/03/2011

I need to add a new column that calculates the number of days when the grade changes.example : (date of grade 6) - (date of grade 5)

any idea??

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try as expression

=date-above(date)

assuming that date is of date type with a numerical representation.

Regards,

Stefan

View solution in original post

2 Replies
swuehl
MVP
MVP

Try as expression

=date-above(date)

assuming that date is of date type with a numerical representation.

Regards,

Stefan

Not applicable
Author

i used the Below

anyway thanks