Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
Save the Date: QlikWorld Online, June 24-25, 2020. Free global virtual event for data integration and data analytic gurus. Register Today
Contributor

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

2 Solutions

Accepted Solutions
Highlighted

Re: How to convert Oracle Month Difference function in QLik

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

Highlighted
Digital Support
Digital Support

Re: How to convert Oracle Month Difference function in QLik

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
Highlighted

Re: How to convert Oracle Month Difference function in QLik

May be

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

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Highlighted

Re: How to convert Oracle Month Difference function in QLik

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

Highlighted
Digital Support
Digital Support

Re: How to convert Oracle Month Difference function in QLik

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