Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rupaliqlik
Creator
Creator

How to convert Oracle Month Difference function in QLik

Hi Folks,

This is the oracle query which I need to calculate in qlikview scritlevel .Please guide me.

round(MONTHS_BETWEEN(sysdate,BIRTHDATE)/12,2)

 

sunny_talwar

swuehl

@Gysbert_Wassenaar

Labels (1)
2 Solutions

Accepted Solutions
sunny_talwar

You can try this

Round((Today() - BIRTHDATE + 1)/365.2422, 0.01)

Here 365.2422 is the approximate number of days in an year. 

View solution in original post

Brett_Bleess
Former Employee
Former Employee

Rupali, did Anil or Sunny's posts help you get things working?  If so, do not forget to return to the thread and use the Accept as Solution button on the post(s) that did help, as that gives the guys credit for the help and lets the other Community Members know what actually worked.  If you still need further help, leave an update for us.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

3 Replies
Anil_Babu_Samineni

May be

Round(Interval(Today(), BIRTHDATE,'MM')/12,2)
Or
Round(Age(Today(), BIRTHDATE)/12, 2)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

You can try this

Round((Today() - BIRTHDATE + 1)/365.2422, 0.01)

Here 365.2422 is the approximate number of days in an year. 

Brett_Bleess
Former Employee
Former Employee

Rupali, did Anil or Sunny's posts help you get things working?  If so, do not forget to return to the thread and use the Accept as Solution button on the post(s) that did help, as that gives the guys credit for the help and lets the other Community Members know what actually worked.  If you still need further help, leave an update for us.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.