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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Difference

Hi

I have a scenario , where my i have to find the ddifference between the STATEMENT DATE , for NICK NAME and the condition is

Period Type = 'Year End'

Please find  the attached excel of sample data

4 Replies
sujeetsingh
Master III
Master III

It will be as

if(Period Type = 'Year End',Interval(STATEMENT DATE-STATEMENT DATE2,'dd') as DifferenceTime

PradeepReddy
Specialist II
Specialist II

If are you going to showcase the data in table format?, then take a pivot table...

Dimension : Nick Name

Expression: Max({<Period Type ={'Year End'}>STMT_DT)-Min({<Period Type ={'Year End'}>STMT_DT)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try Interval() like this

=Interval(YearEnd([STATEMENT DATE]) - [STATEMENT DATE], 'DD') for getting the difference between the STATEMENT DATE AND Year end, if you want current year end then use below expression

=Interval(YearEnd(Today()) - [STATEMENT DATE], 'DD')

Regards,

Jagan.

SunilChauhan
Champion II
Champion II

which two date you want to make difference

if(Period Type = 'Year End',Interval(DATEfeidl1-Datefield2,'dd')

Sunil Chauhan