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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate the field in script level....?

Hi All,

I am using the below expression in script level.But its not working what is the problem

I am calculating the Max month related data is store into current2015count field.

if(Created_date = date(max(Created_date),'MMM') ,[2015  Count 1],) as current2015count

13 Replies
avinashelite

Please check the attachment for the solution.

Not applicable
Author

please write the discussion in discussion window ....i am using personal edition...

please help me.

avinashelite

Try like this:

Test:

LOAD Name,

     subject,

     Date,

     [value Count],

     marks

FROM

[http://community.qlik.com/thread/154524]

(html, codepage is 1252, embedded labels, table is @1);

NoConcatenate

Result:

load

Name,

     subject,

     Date,

     [value Count],

     sum(marks) as marks

     Resident Test group by Name,

     subject,

     Date,

     [value Count];

    

    drop table Test;

mukesh24
Partner - Creator III
Partner - Creator III

Hi Subbu,

When u r using aggregation function in Backend scripting use group by clause.

Regards,
Mukesh Chaudhari