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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Last 12 months Avg

Hi All,

I have field called MonthYear and the the data is in Text format and i will be receiving the data from excel where the data will in this format

May'15

Jun'15

Jul'15

.....(till) May'16

I have a field called Distributed Leads where the data is 17,32,89

Now i need calculate the last 12 months avg...

so that should be from May'15 to Apr'16.

Can you please help me how to achieve this

Thanks,

Bharat

Labels (1)
5 Replies
kamal_sanguri
Specialist
Specialist

Could you please elaborate it more.. or if possible attach some sample data..

jonathandienst
Partner - Champion III
Partner - Champion III

The first step will be to load the dates as numeric Qlikview date values. You can use a load statement like:

     LOAD

          ...

          Date#(PurgeChar(MonthYear, chr(39)), 'MMMyyyy') as MonthYear,

          ...

(assumes that he apostrophe in the date is ' (chr(39)))

For the rest of your requirements, I suggest that you attach a qvw sample file to get accurate and useful suggestions.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

bharatkishore
Creator III
Creator III
Author

Hi Kamal,

Please find attached excel

kamal_sanguri
Specialist
Specialist

Added few rows for Feb'15 and created chart to show average.. pls see if this is what your were looking for..

-Kamal